Run mkinitcpio only once.

merge-requests/273/head
Chrysostomus 7 years ago
parent 7f04eedbc0
commit 13ec7a5e1e

@ -571,11 +571,7 @@ run_mkinitcpio() {
([[ $LVM -eq 0 ]] && [[ $LUKS -eq 1 ]]) && sed -i 's/block filesystems/block encrypt filesystems/g' ${MOUNTPOINT}/etc/mkinitcpio.conf 2>/tmp/.errlog
check_for_error
# Run Mkinitcpio command depending on kernel(s) installed
KERNEL=$(ls ${MOUNTPOINT}/boot/*.img | grep -v "fallback" | sed "s~${MOUNTPOINT}/boot/initramfs-~~g" | sed s/\.img//g | uniq)
for i in ${KERNEL}; do
arch_chroot "mkinitcpio -P" 2>>/tmp/.errlog
done
check_for_error
}

Loading…
Cancel
Save