From 40fedd445465223e74519478499ef30d79f31757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20S=C3=A1nchez-Beato?= Date: Thu, 7 Nov 2024 07:57:11 -0500 Subject: [PATCH] hooks: include nvidia modprobe configuration from deb --- hooks/001-extra-packages.chroot | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hooks/001-extra-packages.chroot b/hooks/001-extra-packages.chroot index 2e3e07a..1f31323 100755 --- a/hooks/001-extra-packages.chroot +++ b/hooks/001-extra-packages.chroot @@ -264,13 +264,16 @@ rm snapd_*.deb case "$(dpkg --print-architecture)" in amd64|arm64) - # Copy nvidia udev rules and dependencies (sources for this come from + # Copy nvidia config files and dependencies (sources for this come from # Canonical, not from Nvidia, see # https://github.com/canonical/nvidia-graphics-drivers). nvidia_common_pkg=nvidia-kernel-common-550 apt-get download "$nvidia_common_pkg" dpkg --fsys-tarfile "$nvidia_common_pkg"_*.deb | - tar xf - ./sbin/ub-device-create ./lib/udev/rules.d/71-nvidia.rules + tar xf - \ + ./sbin/ub-device-create \ + ./lib/udev/rules.d/71-nvidia.rules \ + ./etc/modprobe.d/nvidia-graphics-drivers-kms.conf rm "$nvidia_common_pkg"_*.deb ;; esac