File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ USE_HOST_MOFED="${USE_HOST_MOFED:-false}"
1717DNF_RELEASEVER=${DNF_RELEASEVER:- " " }
1818RHEL_VERSION=${RHEL_VERSION:- " " }
1919RHEL_MAJOR_VERSION=9
20+ RHEL_MINOR_VERSION=${RHEL_MINOR_VERSION:- " " }
2021KERNEL_MODULE_TYPE=${KERNEL_MODULE_TYPE:- auto}
2122
2223DRIVER_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
You can’t perform that action at this time.
0 commit comments