Disable NVIDIA persistence mode with -no-verify flag
BUG=b/352756789
TEST=presubmit, Spinned up the VM and manually verified
RELEASE_NOTE=Disable NVIDIA persistence mode with -no-verify flag
Change-Id: I0ad2c2e2e04ef6af14159c6bc7f662ca63ae1efd
Reviewed-on: https://cos-review.googlesource.com/c/cos/overlays/board-overlays/+/76021
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Reviewed-by: Arnav Kansal <rnv@google.com>
diff --git a/project-lakitu/app-admin/extensions-manager/extensions-manager-0.0.1-r48.ebuild b/project-lakitu/app-admin/extensions-manager/extensions-manager-0.0.1-r49.ebuild
similarity index 100%
rename from project-lakitu/app-admin/extensions-manager/extensions-manager-0.0.1-r48.ebuild
rename to project-lakitu/app-admin/extensions-manager/extensions-manager-0.0.1-r49.ebuild
diff --git a/project-lakitu/app-admin/extensions-manager/files/cos-extensions.sh b/project-lakitu/app-admin/extensions-manager/files/cos-extensions.sh
index 3428a37..2ba3117 100755
--- a/project-lakitu/app-admin/extensions-manager/files/cos-extensions.sh
+++ b/project-lakitu/app-admin/extensions-manager/files/cos-extensions.sh
@@ -106,6 +106,11 @@
The gpu extension can be used to install drivers on a dev channel image with
this.
+ -no-verify
+ Skip kernel module loading, installation verification,
+ and the enabling of NVIDIA persistence mode.
+ Useful for preloading drivers without attached GPU.
+
-debug
The granularity of logging of the gpu extension can be increased by
specifying this.
@@ -113,14 +118,14 @@
${PROG_NAME} list -- [options]
--target-gpu
- This flag specifies the GPU device to display its compatible drivers.
- If specified, it must be one of: NVIDIA_TESLA_K80, NVIDIA_TESLA_P4,
- NVIDIA_TESLA_P100, NVIDIA_TESLA_V100, NVIDIA_L4, NVIDIA_H100_80GB,
+ This flag specifies the GPU device to display its compatible drivers.
+ If specified, it must be one of: NVIDIA_TESLA_K80, NVIDIA_TESLA_P4,
+ NVIDIA_TESLA_P100, NVIDIA_TESLA_V100, NVIDIA_L4, NVIDIA_H100_80GB,
NVIDIA_TESLA_A100, NVIDIA_A100_80GB, NVIDIA_TESLA_T4.
If not specified, the GPU device will be auto-detected by the installer.
--gpu-proto-cache-dir
- The GPU proto cache directory that GPU driver versions proto file is stored into.
+ The GPU proto cache directory that GPU driver versions proto file is stored into.
If unspecified, the GPU driver versions proto file will not be cached.
EOF
exit "${1}"
@@ -202,8 +207,12 @@
shift
run_gpu_installer install "-host-dir=/var/lib/nvidia" "$@"
echo "GPU drivers successfully installed."
- post_install
- ;;
+ if [[ "$@" =~ (--no-verify|-no-verify) ]]; then
+ echo "Skipping post_install due to no-verify flag."
+ else
+ post_install
+ fi
+ ;;
*)
echo "Unsupported extension $1"
exit 1