From d01ee7f6c5c889d7e1a42ac071e8f20b025d1a84 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson <janderson@ciq.com> Date: Fri, 3 Jan 2025 20:22:11 +0000 Subject: [PATCH] Adjust nvidia example to remove dkms_autoinstaller Nvidia removed dkms_autoinstaller from the non-Debian packages. Signed-off-by: Jonathon Anderson <janderson@ciq.com> --- examples/rockylinux-9-nvidia/Containerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rockylinux-9-nvidia/Containerfile b/examples/rockylinux-9-nvidia/Containerfile index 305042c..3fd9a44 100644 --- a/examples/rockylinux-9-nvidia/Containerfile +++ b/examples/rockylinux-9-nvidia/Containerfile @@ -5,5 +5,5 @@ RUN dnf -y install dnf-plugins-core epel-release kernel-headers \ && dnf -y module install nvidia-driver:latest-dkms \ && dnf -y install datacenter-gpu-manager \ && dnf clean all \ - && ls /lib/modules | xargs -n1 /usr/lib/dkms/dkms_autoinstaller start \ + && for dir in /usr/src/kernels/*; do dkms autoinstall --kernelver $(basename $dir); done \ && dkms status