mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix mountpoints
This commit is contained in:
parent
d20d3ddd18
commit
87ba4207b9
1 changed files with 2 additions and 2 deletions
|
@ -420,7 +420,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 -q "${3}/efi") && ! -d "${3}${5}/EFI" ]]; then
|
||||
mkdir "${3}${5}/EFI"
|
||||
fi
|
||||
# check if /boot exists on ROOT DEVICE
|
||||
|
@ -436,7 +436,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 -q "${3}/efi") && ! -d "${3}${5}/EFI" ]]; then
|
||||
_dialog --msgbox "Error: EFI SYSTEM PARTITION (ESP) ${3}${5} does not contain /EFI directory." 0 0
|
||||
_umountall
|
||||
return 1
|
||||
|
|
Loading…
Reference in a new issue