mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 15:41:04 +02:00
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:
parent
1ca0e15c64
commit
b1315476dc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user