aboutsummaryrefslogtreecommitdiff
path: root/3-post-setup.sh
diff options
context:
space:
mode:
authorChris Titus <[email protected]>2021-11-03 14:11:35 -0500
committerChris Titus <[email protected]>2021-11-03 14:11:35 -0500
commitf43c3f71b1d42aa4c99ba5ce616a1a1b26b506fa (patch)
treede88d394e3da219497dc066fb36be963a944187b /3-post-setup.sh
parentc8caa02826f3f29036aaf3cb9545c4462049264a (diff)
downloadArchTitus-f43c3f71b1d42aa4c99ba5ce616a1a1b26b506fa.tar.xz
ArchTitus-f43c3f71b1d42aa4c99ba5ce616a1a1b26b506fa.zip
Fix BIOS Boot
Added checks for efi and bios at different points
Diffstat (limited to '3-post-setup.sh')
-rwxr-xr-x3-post-setup.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/3-post-setup.sh b/3-post-setup.sh
index 326e5ee..ba51c5d 100755
--- a/3-post-setup.sh
+++ b/3-post-setup.sh
@@ -10,11 +10,9 @@
echo -e "\nFINAL SETUP AND CONFIGURATION"
echo "--------------------------------------"
-echo "-- GRUB Bootloader Installation --"
+echo "-- GRUB EFI Bootloader Install&Check--"
echo "--------------------------------------"
-if [[ ! -d "/sys/firmware/efi" ]]; then
- grub-install --boot-directory=/boot ${DISK}
-else
+if [[ -d "/sys/firmware/efi" ]]; then
grub-install --efi-directory=/boot ${DISK}
fi
grub-mkconfig -o /boot/grub/grub.cfg