diff --git a/src/commands/system-setup/arch/server-setup.sh b/src/commands/system-setup/arch/server-setup.sh index beb57db9..a0536167 100755 --- a/src/commands/system-setup/arch/server-setup.sh +++ b/src/commands/system-setup/arch/server-setup.sh @@ -430,7 +430,11 @@ echo -ne " 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 cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist @@ -446,8 +450,6 @@ echo -ne " " if [[ ! -d "/sys/firmware/efi" ]]; then grub-install --boot-directory=/mnt/boot ${DISK} -else - pacstrap /mnt efibootmgr --noconfirm --needed fi echo -ne " -------------------------------------------------------------------------