diff options
Diffstat (limited to '3-post-setup.sh')
| -rwxr-xr-x | 3-post-setup.sh | 9 |
1 files changed, 8 insertions, 1 deletions
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 # ------------------------------------------------------------------------ |
