fix
This commit is contained in:
parent
7b033b8910
commit
57c53ad862
2 changed files with 7 additions and 3 deletions
|
@ -234,7 +234,7 @@ function installation {
|
|||
minimalinstallation
|
||||
fi
|
||||
|
||||
#kernel
|
||||
# module and hooks
|
||||
parameter="base udev "
|
||||
if [ "${swap}" != "n" ]; then
|
||||
parameter="${parameter}resume "
|
||||
|
@ -255,7 +255,11 @@ function installation {
|
|||
fi
|
||||
|
||||
echo ""
|
||||
echo "MODULES=\"i915 radeon ata_generic ata_piix nls_cp437 vfat ext4 btrfs\"" > ${mountpoint}/etc/mkinitcpio.conf
|
||||
if [ "${version}" == "libre" ]; then
|
||||
echo "MODULES=\"i915 radeon nouveau ata_generic ata_piix nls_cp437 vfat ext4 btrfs\"" > ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf
|
||||
else
|
||||
echo "MODULES=\"nvidia nvidia_modeset nvidia_uvm nvidia_drm i915 radeon ata_generic ata_piix nls_cp437 vfat ext4 btrfs\"" > ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf
|
||||
fi
|
||||
echo "HOOKS=\"${parameter}\"" >> ${mountpoint}/etc/mkinitcpio.conf
|
||||
echo "COMPRESSION=\"lz4\"" >> ${mountpoint}/etc/mkinitcpio.conf
|
||||
echo "FILES=\"/etc/modprobe.d/blacklist-floppy.conf\"" >> ${mountpoint}/etc/mkinitcpio.conf
|
||||
|
|
|
@ -94,7 +94,7 @@ function filesystem() {
|
|||
|
||||
# module and hooks
|
||||
if [ "${version}" == "libre" ]; then
|
||||
echo "MODULES=\"i915 radeon nouveau\"" > ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf
|
||||
echo "MODULES=\"i915 radeon nouveau ata_generic ata_piix nls_cp437 vfat ext4 btrfs\"" > ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf
|
||||
else
|
||||
echo "MODULES=\"nvidia nvidia_modeset nvidia_uvm nvidia_drm i915 radeon ata_generic ata_piix nls_cp437 vfat ext4 btrfs\"" > ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue