cos-tools/cos_customizer: Add the `-use-scratch-disk` flag in cos-customizer.

This change is required for the migration from GPU Installer V1 to GPU Installer V2 in the derived image build process. Installing proprietary GPU drivers with GPU Installer V2 requires downloading and preparing the toolchain to link the precompiled GPU drivers., which consumes approximately 5GB of additional disk space.

In the driverVM environment, where the vmm size limit is 10GB, increasing the boot disk size is not a viable option. To address this, a new flag is added to enable cos-customizer to provision a scratch disk. This scratch disk will be used to store the toolchain during the GPU driver installation process.

BUG=b/380479799
tTEST=cloudbuild
RELEASE_NOTE= Add `-use-scratch-disk` flag in cos-customizer finish-image-build step.

Change-Id: Ic1f555e848a36a85b225ab5b00ed77237ec0b7ce
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/87220
Reviewed-by: Robert Kolchmeyer <rkolchmeyer@google.com>
Tested-by: Shuo Yang <gshuoy@google.com>
Reviewed-by: Arnav Kansal <rnv@google.com>
Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com>
5 files changed
tree: 0d9ce97ed13cd0c5931495385be0da6e52068eaf
  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. postsubmit-cloudbuild.yaml
  14. README.md
  15. run_tests.sh
  16. run_unit_tests.sh
  17. 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.