[-] Remove nvidia by default

This commit is contained in:
Simon Rieger 2022-10-04 19:55:42 +02:00
parent 06d71c9c79
commit 31e8edd34e
2 changed files with 4 additions and 4 deletions

View file

@ -598,12 +598,12 @@ function installation {
parameter="${parameter}keyboard fsck "
if [ "${nvidia}" == "y" ]; then
echo "MODULES=\"amdgpu nvidia i915 radeon\"" > ${mountpoint}/etc/mkinitcpio.conf
echo "MODULES=\"amdgpu i915 nvidia\"" > ${mountpoint}/etc/mkinitcpio.conf
echo "HOOKS=\"${parameter}\"" >> ${mountpoint}/etc/mkinitcpio.conf
echo "COMPRESSION=\"zstd\"" >> ${mountpoint}/etc/mkinitcpio.conf
echo "blacklist nouveau" > ${mountpoint}/etc/modprobe.d/blacklist-nouveau.conf
else
echo "MODULES=\"amdgpu i915 radeon nouveau\"" > ${mountpoint}/etc/mkinitcpio.conf
echo "MODULES=\"amdgpu i915 nouveau\"" > ${mountpoint}/etc/mkinitcpio.conf
echo "HOOKS=\"${parameter}\"" >> ${mountpoint}/etc/mkinitcpio.conf
echo "COMPRESSION=\"zstd\"" >> ${mountpoint}/etc/mkinitcpio.conf
fi

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
<#!/usr/bin/env bash
#
set -ex
@ -95,7 +95,7 @@ function system() {
echo "install dell-smbios /bin/false" > ${work_dir}/${arch}/airootfs/etc/modprobe.d/blacklist-dell-smbios.conf
# modules
echo "MODULES=\"amdgpu i915 radeon nvidia fuse loop\"" > ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf
echo "MODULES=\"amdgpu i915 nouveau fuse loop\"" > ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf
echo "HOOKS=\"base udev keyboard keymap consolefont modconf archiso block filesystems\"" >> ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf
echo "COMPRESSION=\"zstd\"" >> ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf
fi