Skip to content

Commit 111f518

Browse files
authored
Merge pull request #299 from NVIDIA/rhel9-work
[rhel9] load the video kernel module before loading the nvidia* modules
2 parents 4f84257 + 7c2d4cb commit 111f518

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rhel9/nvidia-driver

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ _install_prerequisites() (
130130
ln -s /usr/src/kernels/${KERNEL_VERSION} /lib/modules/${KERNEL_VERSION}/build
131131

132132
echo "Installing Linux kernel module files..."
133-
dnf -q -y --releasever=${DNF_RELEASEVER} install kernel-core-${KERNEL_VERSION} > /dev/null
133+
dnf -q -y --releasever=${DNF_RELEASEVER} install kernel-${KERNEL_VERSION} > /dev/null
134134

135135
# Prevent depmod from giving a WARNING about missing files
136136
touch /lib/modules/${KERNEL_VERSION}/modules.order
@@ -366,6 +366,9 @@ _load_driver() {
366366
echo "Loading ipmi and i2c_core kernel modules..."
367367
modprobe -a i2c_core ipmi_msghandler ipmi_devintf
368368

369+
echo "Loading the video kernel module..."
370+
modprobe video
371+
369372
echo "Loading NVIDIA driver kernel modules..."
370373
set -o xtrace +o nounset
371374
modprobe nvidia "${NVIDIA_MODULE_PARAMS[@]}"

0 commit comments

Comments
 (0)