diff --git a/0-preinstall.sh b/0-preinstall.sh index 855a3f1..95c2373 100755 --- a/0-preinstall.sh +++ b/0-preinstall.sh @@ -106,14 +106,6 @@ echo "--------------------------------------" pacstrap /mnt base base-devel linux linux-firmware vim nano sudo archlinux-keyring wget libnewt --noconfirm --needed genfstab -U /mnt >> /mnt/etc/fstab echo "keyserver hkp://keyserver.ubuntu.com" >> /mnt/etc/pacman.d/gnupg/gpg.conf -echo "--------------------------------------" -echo "-- GRUB Bootloader Installation --" -echo "--------------------------------------" -if [[ ! -d "/sys/firmware/efi" ]]; then - grub-install --boot-directory=/mnt/boot ${DISK} -else - grub-install --efi-directory=/mnt/boot ${DISK} -fi cp -R ${SCRIPT_DIR} /mnt/root/ArchTitus cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist echo "--------------------------------------" diff --git a/3-post-setup.sh b/3-post-setup.sh index a550d20..326e5ee 100755 --- a/3-post-setup.sh +++ b/3-post-setup.sh @@ -9,7 +9,14 @@ #------------------------------------------------------------------------- echo -e "\nFINAL SETUP AND CONFIGURATION" - +echo "--------------------------------------" +echo "-- GRUB Bootloader Installation --" +echo "--------------------------------------" +if [[ ! -d "/sys/firmware/efi" ]]; then + grub-install --boot-directory=/boot ${DISK} +else + grub-install --efi-directory=/boot ${DISK} +fi grub-mkconfig -o /boot/grub/grub.cfg # ------------------------------------------------------------------------