Skip to content

Commit 2b2edb5

Browse files
committed
[rhel9-precompiled] load the video kernel module before the nvidia module
Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
1 parent 29fc943 commit 2b2edb5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

rhel9/precompiled/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ RUN rm -rf /lib/modules/${KERNEL_VERSION_NOARCH}.${BUILD_ARCH} \
117117

118118
# Copy the DRM module dependency from the builder
119119
COPY --from=builder /lib/modules/${KERNEL_VERSION_NOARCH}.${BUILD_ARCH}/kernel/drivers/gpu/drm/drm.ko.xz /lib/modules/${KERNEL_VERSION_NOARCH}.${BUILD_ARCH}/kernel/drivers/gpu/drm/drm.ko.xz
120+
COPY --from=builder /lib/modules/${KERNEL_VERSION_NOARCH}.${BUILD_ARCH}/kernel/drivers/acpi/video.ko.xz /lib/modules/${KERNEL_VERSION_NOARCH}.${BUILD_ARCH}/kernel/drivers/acpi/video.ko.xz
120121

121122
# Install the Driver modules
122123
RUN dnf install -y /rpms/kmod-nvidia-*.rpm

rhel9/precompiled/nvidia-driver

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ _load_driver() {
193193

194194
echo "Loading NVIDIA driver kernel modules..."
195195
set -o xtrace +o nounset
196+
modprobe video
196197
modprobe nvidia "${NVIDIA_MODULE_PARAMS[@]}"
197198
modprobe nvidia-uvm "${NVIDIA_UVM_MODULE_PARAMS[@]}"
198199
modprobe nvidia-modeset "${NVIDIA_MODESET_MODULE_PARAMS[@]}"

0 commit comments

Comments
 (0)