silence check

This commit is contained in:
Tobias Powalowski 2023-02-03 12:46:56 +01:00
parent 248a8d0c2b
commit 284a77fc1c

View file

@ -418,7 +418,7 @@ _mkfs() {
if [[ -n "${_CREATE_MOUNTPOINTS}" && "${5}" = "/efi" && ! -d "${3}${5}/EFI" ]]; then
mkdir "${3}${5}/EFI"
fi
if [[ -n "${_CREATE_MOUNTPOINTS}" && "${5}" = "/boot" && -n "${_UEFI_BOOT}" && ! $(mountpoint "${3}/efi" > "${_NO_LOG}") && ! -d "${3}${5}/EFI" ]]; then
if [[ -n "${_CREATE_MOUNTPOINTS}" && "${5}" = "/boot" && -n "${_UEFI_BOOT}" && ! $(mountpoint "${3}/efi" &>"${_NO_LOG}") && ! -d "${3}${5}/EFI" ]]; then
mkdir "${3}${5}/EFI"
fi
# check if /boot exists on ROOT DEVICE
@ -434,7 +434,7 @@ _mkfs() {
return 1
fi
# check on /EFI on /boot
if [[ -z "${_CREATE_MOUNTPOINTS}" && "${5}" = "/boot" && -n "${_UEFI_BOOT}" && ! $(mountpoint "${3}/efi" > "${_NO_LOG}") && ! -d "${3}${5}/EFI" ]]; then
if [[ -z "${_CREATE_MOUNTPOINTS}" && "${5}" = "/boot" && -n "${_UEFI_BOOT}" && ! $(mountpoint "${3}/efi" &>"${_NO_LOG}") && ! -d "${3}${5}/EFI" ]]; then
_dialog --msgbox "Error: EFI SYSTEM PARTITION (ESP) ${3}${5} does not contain /EFI directory." 0 0
_umountall
return 1