Skip to content

Commit

Permalink
fix error handling for unmounting on the arm64 architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Dec 11, 2023
1 parent 14e8a82 commit cc891df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grml-debootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ cleanup() {
einfo "Removing ${STAGES}" ; rmdir "$STAGES" || eend $?
fi

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

Expand Down Expand Up @@ -1682,7 +1682,7 @@ grub_install() {
umount "${MNTPOINT}"/dev/pts
try_umount 3 "${MNTPOINT}"/dev

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

Expand All @@ -1695,7 +1695,7 @@ umount_target() {
return 0
fi

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

Expand Down

0 comments on commit cc891df

Please sign in to comment.