add autodetection of mounted efisys partition

This commit is contained in:
Tobias Powalowski 2021-09-16 15:46:35 +02:00
parent f6db75733b
commit a6661847aa

View file

@ -1720,8 +1720,8 @@ check_efisys_part() {
DIALOG --defaultno --yesno "Detected EFI System partition ${UEFISYS_PART} does not appear to be FAT32 formatted. Do you want to format ${UEFISYS_PART} as FAT32?\nNote: Setup will proceed even if you select NO. Most systems will boot fine even with FAT16 or FAT12 EFI System partition, however some firmwares may refuse to boot with a non-FAT32 EFI System partition. It is recommended to use FAT32 for maximum compatibility with UEFI Spec." 0 0 && _FORMAT_UEFISYS_FAT32="1"
fi
if [[ "${UEFISYS_MOUNTPOINT}" == "" ]]; then
UEFISYS_MOUNTPOINT="/$(basename $(mount | grep "${UEFISYS_PART}" | cut -d " " -f 3))"
if [[ "${UEFISYS_MOUNTPOINT}" == "/" ]]; then
DIALOG --inputbox "Enter the mountpoint of your EFI System partition (Default is /boot): " 0 0 "/boot" 2>${ANSWER} || return 1
UEFISYS_MOUNTPOINT="$(cat ${ANSWER})"
fi