diff --git a/build_files/shared/initramfs.sh b/build_files/shared/initramfs.sh index 4b4b6d3fb94..671baa2564e 100755 --- a/build_files/shared/initramfs.sh +++ b/build_files/shared/initramfs.sh @@ -3,7 +3,9 @@ set -oue pipefail # Remove nvidia specific files -if [[ ! "${IMAGE_FLAVOR}" =~ "nvidia" ]]; then +if [[ "${IMAGE_FLAVOR}" =~ "nvidia" ]]; then + rm /usr/lib/modprobe.d/nvk.conf +else rm /usr/lib/dracut/dracut.conf.d/95-nvidia.conf rm /usr/lib/modprobe.d/nvidia.conf fi diff --git a/system_files/shared/usr/lib/modprobe.d/nvk.conf b/system_files/shared/usr/lib/modprobe.d/nvk.conf new file mode 100644 index 00000000000..957b329a2ac --- /dev/null +++ b/system_files/shared/usr/lib/modprobe.d/nvk.conf @@ -0,0 +1,2 @@ +# Enable GSP firmware +options nouveau config=NvGspRm=1 \ No newline at end of file