Skip to content

Commit

Permalink
[rhel9-precompiled] load the video kernel module before the nvidia mo…
Browse files Browse the repository at this point in the history
…dule

Signed-off-by: Tariq Ibrahim <[email protected]>
  • Loading branch information
tariq1890 committed Jan 15, 2025
1 parent 29fc943 commit 2b2edb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rhel9/precompiled/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ RUN rm -rf /lib/modules/${KERNEL_VERSION_NOARCH}.${BUILD_ARCH} \

# Copy the DRM module dependency from the builder
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
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

# Install the Driver modules
RUN dnf install -y /rpms/kmod-nvidia-*.rpm
Expand Down
1 change: 1 addition & 0 deletions rhel9/precompiled/nvidia-driver
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ _load_driver() {

echo "Loading NVIDIA driver kernel modules..."
set -o xtrace +o nounset
modprobe video
modprobe nvidia "${NVIDIA_MODULE_PARAMS[@]}"
modprobe nvidia-uvm "${NVIDIA_UVM_MODULE_PARAMS[@]}"
modprobe nvidia-modeset "${NVIDIA_MODESET_MODULE_PARAMS[@]}"
Expand Down

0 comments on commit 2b2edb5

Please sign in to comment.