Pacstrap fix

This commit is contained in:
Chris Titus 2024-08-22 21:48:44 -05:00
parent 5db0e2622d
commit 8c310d6350

View File

@ -430,7 +430,11 @@ echo -ne "
Arch Install on Main Drive Arch Install on Main Drive
------------------------------------------------------------------------- -------------------------------------------------------------------------
" "
pacstrap /mnt base base-devel linux-lts linux-lts-firmware vim nano sudo archlinux-keyring bash --noconfirm --needed if [[ ! -d "/sys/firmware/efi" ]]; then
pacstrap /mnt base base-devel linux-lts linux-firmware --noconfirm --needed
else
pacstrap /mnt base base-devel linux-lts linux-firmware efibootmgr --noconfirm --needed
fi
echo "keyserver hkp://keyserver.ubuntu.com" >> /mnt/etc/pacman.d/gnupg/gpg.conf echo "keyserver hkp://keyserver.ubuntu.com" >> /mnt/etc/pacman.d/gnupg/gpg.conf
cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist
@ -446,8 +450,6 @@ echo -ne "
" "
if [[ ! -d "/sys/firmware/efi" ]]; then if [[ ! -d "/sys/firmware/efi" ]]; then
grub-install --boot-directory=/mnt/boot ${DISK} grub-install --boot-directory=/mnt/boot ${DISK}
else
pacstrap /mnt efibootmgr --noconfirm --needed
fi fi
echo -ne " echo -ne "
------------------------------------------------------------------------- -------------------------------------------------------------------------