diff options
| author | Chris Titus <[email protected]> | 2021-11-01 13:04:41 -0500 |
|---|---|---|
| committer | Chris Titus <[email protected]> | 2021-11-01 13:04:41 -0500 |
| commit | fdd79d35f6e423be9297c4f97c2c0f428ed135d1 (patch) | |
| tree | b5cd475f3e4629e25ad89ffc37a903af4d5b7f36 | |
| parent | 56af0194ae59c6d206fce602f1a20949554bf846 (diff) | |
| download | ArchTitus-fdd79d35f6e423be9297c4f97c2c0f428ed135d1.tar.xz ArchTitus-fdd79d35f6e423be9297c4f97c2c0f428ed135d1.zip | |
Boot Fixes
| -rwxr-xr-x | 0-preinstall.sh | 8 | ||||
| -rwxr-xr-x | 3-post-setup.sh | 9 |
2 files changed, 8 insertions, 9 deletions
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 # ------------------------------------------------------------------------ |
