setup-nvidia: Modprobe video.ko for amd64

Since we added CONFIG_I915 to our amd64 kernel, CONFIG_ACPI_VIDEO=m is enabled
and causes the nvidia driver to compile in some code that depends on it. Since
we don't have depmod information and we insmod the nvidia module - manually
load the required module. The '|| true' lets this line pass on arm64.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
Jeremi Piotrowski 2025-02-27 13:57:04 +01:00
parent 1ca0e15c64
commit b1315476dc

View File

@ -99,6 +99,8 @@ function install_and_load() {
ldconfig
modprobe -a i2c_core ipmi_msghandler ipmi_devintf
# This is needed on amd64 due to CONFIG_ACPI_VIDEO=m
modprobe -q video || true
pushd "/opt/nvidia/${NVIDIA_CURRENT_INSTALLATION}/usr/lib/modules/$(uname -r)/video/"
insmod nvidia.ko