From 80c4d938bf35de286dc99ae03afabe747148a190 Mon Sep 17 00:00:00 2001 From: Vasiliy Stelmachenok <92667539+ventureoo@users.noreply.github.com> Date: Fri, 3 Mar 2023 20:34:45 +0300 Subject: [PATCH] Fix the nouveau module loading (#14) * Add a stub to properly load nouveau Since nvidia-utils installs files in ``/usr/lib/modprobe.d/`` we have the right to completely override their behavior with files with the same name in ``/etc/modprobe.d``. This commit should fix the issue with the unloadable nouveau module for LiveCD. Note that this config should not be copied into the installation system. * Add stub to ensure that nvidia-uvm does not load Potentially breaks some things, but we have to make sure that nvidia-uvm doesn't pull up the other modules it depends on. --- archiso/airootfs/etc/modprobe.d/nvidia-utils.conf | 1 + archiso/airootfs/etc/modules-load.d/nvidia-utils.conf | 1 + 2 files changed, 2 insertions(+) create mode 100644 archiso/airootfs/etc/modprobe.d/nvidia-utils.conf create mode 100644 archiso/airootfs/etc/modules-load.d/nvidia-utils.conf diff --git a/archiso/airootfs/etc/modprobe.d/nvidia-utils.conf b/archiso/airootfs/etc/modprobe.d/nvidia-utils.conf new file mode 100644 index 0000000..017b682 --- /dev/null +++ b/archiso/airootfs/etc/modprobe.d/nvidia-utils.conf @@ -0,0 +1 @@ +# THIS IS A STUB TO OVERRIDE THE NVIDIA-UTILS PACKAGE, DO NOT TOUCH. diff --git a/archiso/airootfs/etc/modules-load.d/nvidia-utils.conf b/archiso/airootfs/etc/modules-load.d/nvidia-utils.conf new file mode 100644 index 0000000..017b682 --- /dev/null +++ b/archiso/airootfs/etc/modules-load.d/nvidia-utils.conf @@ -0,0 +1 @@ +# THIS IS A STUB TO OVERRIDE THE NVIDIA-UTILS PACKAGE, DO NOT TOUCH.