Skip to content

Commit 4e71e4d

Browse files
authored
Merge pull request #302 from NVIDIA/rhel9-video
load the video module for RHEL9 with minor versions 3 or greater
2 parents 111f518 + 1fd9737 commit 4e71e4d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

rhel9/nvidia-driver

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ USE_HOST_MOFED="${USE_HOST_MOFED:-false}"
1717
DNF_RELEASEVER=${DNF_RELEASEVER:-""}
1818
RHEL_VERSION=${RHEL_VERSION:-""}
1919
RHEL_MAJOR_VERSION=9
20+
RHEL_MINOR_VERSION=${RHEL_MINOR_VERSION:-""}
2021
KERNEL_MODULE_TYPE=${KERNEL_MODULE_TYPE:-auto}
2122

2223
DRIVER_ARCH=${TARGETARCH/amd64/x86_64} && DRIVER_ARCH=${DRIVER_ARCH/arm64/aarch64}
@@ -57,6 +58,7 @@ _get_rhel_version_from_kernel() {
5758
return 1
5859
fi
5960
RHEL_VERSION="${rhel_version_arr[0]}.${rhel_version_arr[1]}"
61+
RHEL_MINOR_VERSION=${rhel_version_arr[1]}
6062
echo "RHEL VERSION successfully resolved from kernel: ${RHEL_VERSION}"
6163
return 0
6264
}
@@ -366,8 +368,10 @@ _load_driver() {
366368
echo "Loading ipmi and i2c_core kernel modules..."
367369
modprobe -a i2c_core ipmi_msghandler ipmi_devintf
368370

369-
echo "Loading the video kernel module..."
370-
modprobe video
371+
if [[ "$RHEL_MINOR_VERSION" -ge "3" ]]; then
372+
echo "Loading the video kernel module..."
373+
modprobe video
374+
fi
371375

372376
echo "Loading NVIDIA driver kernel modules..."
373377
set -o xtrace +o nounset

0 commit comments

Comments
 (0)