Skip to content

Commit

Permalink
style fix: always use "${MNTPOINT}"/boot/efi
Browse files Browse the repository at this point in the history
instead of sometimes mixed with "${MNTPOINT}/boot/efi"
  • Loading branch information
adrelanos committed Dec 11, 2023
1 parent 7a3f1d9 commit 14e8a82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions grml-debootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ cleanup() {
fi

if [ -n "$ARM_EFI_TARGET" ]; then
umount "${MNTPOINT}/boot/efi" >/dev/null 2>&1
umount "${MNTPOINT}"/boot/efi
fi

# Remove temporary mountpoint again
Expand Down Expand Up @@ -1548,8 +1548,8 @@ grub_install() {
fi

if [ -n "${ARM_EFI_TARGET}" ]; then
mkdir -p "${MNTPOINT}/boot/efi"
if ! mount "${ARM_EFI_TARGET}" "${MNTPOINT}/boot/efi" ; then
mkdir -p "${MNTPOINT}"/boot/efi
if ! mount "${ARM_EFI_TARGET}" "${MNTPOINT}"/boot/efi ; then
eerror "Error: Mounting ${ARM_EFI_TARGET} failed, can not continue."
bailout 1
fi
Expand Down Expand Up @@ -1696,7 +1696,7 @@ umount_target() {
fi

if [ -n "${ARM_EFI_TARGET}" ]; then
umount "${MNTPOINT}/boot/efi"
umount "${MNTPOINT}"/boot/efi
fi

umount "${MNTPOINT}"
Expand Down

0 comments on commit 14e8a82

Please sign in to comment.