Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • N nvidia-patch
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 26
    • Issues 26
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Keylase
  • nvidia-patch
  • Merge requests
  • !163

Automation-friendly patch.sh

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/Snawoot/opmodes into master Sep 27, 2019
  • Overview 1
  • Commits 5
  • Pipelines 0
  • Changes 2

Created by: Snawoot

Purpose of proposed changes

This PR implements features discussed in #162 (closed) and aimed to make automation around patch.sh straightforward. As a result, it will be trivial to put together automated patching for latest driver updates.

Essential steps taken

  • Refactored patch.sh to split code into routines and define mutually exclusive modes of operation.
  • New mode of operation: check if specific version is supported. Example: ./patch.sh -c 430.50
  • New mode of operation: list supported versions. Example: ./patch.sh -l
  • Idempotent invocation: subsequent invocations of patch.sh detect driver file different from original and do nothing.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/Snawoot/opmodes