Added logic to install grub in partion

This commit is contained in:
HimDek 2022-03-27 12:58:47 +05:30
parent fc2a91a48c
commit b72d9dc2d2
1 changed files with 5 additions and 1 deletions

View File

@ -18,8 +18,12 @@ GRUB EFI Bootloader Install & Check
" "
source ${HOME}/ArchTitus/configs/setup.conf source ${HOME}/ArchTitus/configs/setup.conf
if [[ -d "/sys/firmware/efi" ]]; then if [[ -d "/sys/firmware/efi" ]]; then
grub-install --efi-directory=/boot ${DISK} if [[ $INSTALL_IN = "PART" ]]; then
grub-install --efi-directory=/boot/EFI ${PART}
elif [[ $INSTALL_IN = "DISK" ]]; then
grub-install --efi-directory=/boot/EFI ${DISK}
fi fi
echo -ne " echo -ne "