cos-customizer: add flag -gpu-type to finish-image-build

To allow users to use `cos-extensions install gpu` for gpu
driver installation via `run-script`, we need to add a flag
for attaching GPU to the preloading VM.

Deprecated the same flag in step `install-gpu`.

BUG=b/229285915
TEST=run a GCB workflow with run-script, script content:
`sudo cos-extensions install gpu` and verify the output
image have the driver installed
RELEASE_NOTE=None

Change-Id: Iad8ff1e1cf30b8804a243fa0b375b07156253aa5
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/49530
Tested-by: He Gao <hegao@google.com>
Reviewed-by: Robert Kolchmeyer <rkolchmeyer@google.com>
Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com>
3 files changed
tree: 032929e2317606c0b7d19469daf24e636eb203f1
  1. coverage/
  2. release/
  3. src/
  4. testing/
  5. .gitignore
  6. BUILD.bazel
  7. cloudbuild.yaml
  8. CONTRIBUTING.md
  9. deps.bzl
  10. go.mod
  11. go.sum
  12. LICENSE
  13. README.md
  14. run_tests.sh
  15. 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.