Skip to content

Commit

Permalink
fix: nvidia modules autoload
Browse files Browse the repository at this point in the history
Fixes: siderolabs/talos#7008

Prevent autloading of nvidia modules by default. This allows setting any
extra kernel modules args from talos machineconfig.

Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
frezbo committed Mar 30, 2023
1 parent 666e073 commit e3e4012
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions nvidia-gpu/nvidia-modules/files/nvidia.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
blacklist nvidia
blacklist nvidia_uvm
blacklist nvidia_drm
blacklist nvidia_modeset
5 changes: 4 additions & 1 deletion nvidia-gpu/nvidia-modules/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e3e4012

Please sign in to comment.