/boot/EFI to /boot/efi

This commit is contained in:
HimDek 2022-03-27 14:31:19 +05:30
parent b72d9dc2d2
commit 290929c927
2 changed files with 6 additions and 6 deletions

View File

@ -113,8 +113,8 @@ if [[ $INSTALL_IN = "PART" ]]; then # Checking if install to partition
fi fi
formatandmount formatandmount
# mount EFI partition # mount EFI partition
mkdir -p /mnt/boot/EFI mkdir -p /mnt/boot/efi
mount -t vfat ${EFIpartition} /mnt/boot/EFI mount -t vfat ${EFIpartition} /mnt/boot/efi
elif [[ $(sudo sudo fdisk -l | grep -i '^Disklabel type') = "Disklabel type: gpt" ]]; then # Checking for GPT Disk Label on a Legacy BIOS (non UEFI) System elif [[ $(sudo sudo fdisk -l | grep -i '^Disklabel type') = "Disklabel type: gpt" ]]; then # Checking for GPT Disk Label on a Legacy BIOS (non UEFI) System
formatandmount formatandmount
fi fi
@ -144,8 +144,8 @@ if [[ $INSTALL_IN = "DISK" ]]; then # Checking if install to disk
mkfs.vfat -F32 -n "EFIBOOT" ${EFIpartition} mkfs.vfat -F32 -n "EFIBOOT" ${EFIpartition}
formatandmount formatandmount
# mount EFI partition # mount EFI partition
mkdir -p /mnt/boot/EFI mkdir -p /mnt/boot/efi
mount -t vfat -L EFIBOOT /mnt/boot/EFI mount -t vfat -L EFIBOOT /mnt/boot/efi
fi fi

View File

@ -21,9 +21,9 @@ source ${HOME}/ArchTitus/configs/setup.conf
if [[ -d "/sys/firmware/efi" ]]; then if [[ -d "/sys/firmware/efi" ]]; then
if [[ $INSTALL_IN = "PART" ]]; then if [[ $INSTALL_IN = "PART" ]]; then
grub-install --efi-directory=/boot/EFI ${PART} grub-install --efi-directory=/boot/efi ${PART}
elif [[ $INSTALL_IN = "DISK" ]]; then elif [[ $INSTALL_IN = "DISK" ]]; then
grub-install --efi-directory=/boot/EFI ${DISK} grub-install --efi-directory=/boot/efi ${DISK}
fi fi
echo -ne " echo -ne "