format ESP if mountpoint is not vfat detected

This commit is contained in:
Tobias Powalowski 2023-01-24 19:23:46 +01:00
parent cd9473c1c2
commit 7d25599130

View file

@ -66,7 +66,6 @@ _enter_mountpoint() {
elif [[ -n "${_DO_UEFISYSDEV}" ]]; then elif [[ -n "${_DO_UEFISYSDEV}" ]]; then
_dialog --menu "Select the mountpoint of your\nEFI SYSTEM PARTITION (ESP) on ${_DEV}:" 10 50 7 "/efi" "MULTIBOOT" "/boot" "SINGLEBOOT" 2>"${_ANSWER}" || return 1 _dialog --menu "Select the mountpoint of your\nEFI SYSTEM PARTITION (ESP) on ${_DEV}:" 10 50 7 "/efi" "MULTIBOOT" "/boot" "SINGLEBOOT" 2>"${_ANSWER}" || return 1
_MP=$(cat "${_ANSWER}") _MP=$(cat "${_ANSWER}")
_FSTYPE="vfat"
_DO_UEFISYSDEV="" _DO_UEFISYSDEV=""
else else
_MP="" _MP=""
@ -196,6 +195,10 @@ _mountpoints() {
if [[ "${_FSTYPE}" == "vfat" && -n "${_DO_UEFISYSDEV}" ]]; then if [[ "${_FSTYPE}" == "vfat" && -n "${_DO_UEFISYSDEV}" ]]; then
_SKIP_FILESYSTEM="1" _SKIP_FILESYSTEM="1"
fi fi
if [[ ! "${_FSTYPE}" == "vfat" && -n "${_DO_UEFISYSDEV}" ]]; then
_FSTYPE="vfat"
_DOMKFS=1
fi
# _ASK_MOUNTPOINTS switch for create filesystem and only mounting filesystem # _ASK_MOUNTPOINTS switch for create filesystem and only mounting filesystem
if [[ -n "${_ASK_MOUNTPOINTS}" && -z "${_SKIP_FILESYSTEM}" ]]; then if [[ -n "${_ASK_MOUNTPOINTS}" && -z "${_SKIP_FILESYSTEM}" ]]; then
_enter_mountpoint || return 1 _enter_mountpoint || return 1