mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add autodetection of mounted efisys partition
This commit is contained in:
parent
f6db75733b
commit
a6661847aa
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
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
|
fi
|
||||||
|
|
||||||
|
UEFISYS_MOUNTPOINT="/$(basename $(mount | grep "${UEFISYS_PART}" | cut -d " " -f 3))"
|
||||||
if [[ "${UEFISYS_MOUNTPOINT}" == "" ]]; then
|
if [[ "${UEFISYS_MOUNTPOINT}" == "/" ]]; then
|
||||||
DIALOG --inputbox "Enter the mountpoint of your EFI System partition (Default is /boot): " 0 0 "/boot" 2>${ANSWER} || return 1
|
DIALOG --inputbox "Enter the mountpoint of your EFI System partition (Default is /boot): " 0 0 "/boot" 2>${ANSWER} || return 1
|
||||||
UEFISYS_MOUNTPOINT="$(cat ${ANSWER})"
|
UEFISYS_MOUNTPOINT="$(cat ${ANSWER})"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue