diff --git a/nvidia-gpu/nvidia-modules/files/nvidia.conf b/nvidia-gpu/nvidia-modules/files/nvidia.conf new file mode 100644 index 00000000..62b5f931 --- /dev/null +++ b/nvidia-gpu/nvidia-modules/files/nvidia.conf @@ -0,0 +1,4 @@ +blacklist nvidia +blacklist nvidia_uvm +blacklist nvidia_drm +blacklist nvidia_modeset diff --git a/nvidia-gpu/nvidia-modules/pkg.yaml b/nvidia-gpu/nvidia-modules/pkg.yaml index 3de27bd6..6a74598e 100644 --- a/nvidia-gpu/nvidia-modules/pkg.yaml +++ b/nvidia-gpu/nvidia-modules/pkg.yaml @@ -12,7 +12,10 @@ steps: sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml - install: - | - mkdir -p /rootfs/lib/modules + mkdir -p /rootfs/lib/modules \ + /rootfs/usr/local/lib/modprobe.d + + cp /pkg/files/nvidia.conf /rootfs/usr/local/lib/modprobe.d/nvidia.conf cp -R /lib/modules/* /rootfs/lib/modules finalize: