Add the "-nvidia-installer-url" flag

This enables installation of an nvidia installer from an arbitrary URL.
It is useful for testing and debugging.

Since we don't have good tools for signing unofficial drivers right now,
we require that this flag be used with -allow-unsigned-driver.

TEST=Manually build an unofficial precompiled installer for live cos-93
image. Disable signature verification on cos-93 VM. Run the following
command (with substitutions):
`COS_GPU_INSTALLER='<v2-image>' cos-extensions install gpu -- \
  -nvidia-installer-url=<url-to-unofficial> -allow-unsigned-driver`

Change-Id: Ie59395226cefe9fae976d61b85441cd1dddfaa76
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/23490
Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com>
Reviewed-by: Arnav Kansal <rnv@google.com>
Tested-by: Robert Kolchmeyer <rkolchmeyer@google.com>
2 files changed
tree: 54d15cce1356f777731504606addef1b221437a0
  1. release/
  2. src/
  3. testing/
  4. BUILD.bazel
  5. cloudbuild.yaml
  6. CONTRIBUTING.md
  7. deps.bzl
  8. go.mod
  9. go.sum
  10. LICENSE
  11. README.md
  12. run_tests.sh
  13. WORKSPACE
README.md

Tools for Container-Optimized OS

This is a repository of various tools developed for Container-Optimized OS. Examples include cos-gpu-installer, cos-toolbox, etc.

See CONTRIBUTING.md for how to contribute.