From 8525832416f16b46b7df1321e8961974fc74d50b Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 13 Apr 2022 20:21:45 +0200 Subject: [PATCH] umountall only if /install is a mountpoint --- usr/lib/archboot/installer/blockdevices.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/archboot/installer/blockdevices.sh b/usr/lib/archboot/installer/blockdevices.sh index 9ba673fa6..011b2fc8e 100644 --- a/usr/lib/archboot/installer/blockdevices.sh +++ b/usr/lib/archboot/installer/blockdevices.sh @@ -396,7 +396,7 @@ _getavailpartitions() # the destination root partition last! _umountall() { - if [[ "${DESTDIR}" == "/install" && $(mountpoint -q ${DESTDIR}) ]]; then + if [[ "${DESTDIR}" == "/install" && mountpoint -q "${DESTDIR}" ]]; then swapoff -a >/dev/null 2>&1 for i in $(findmnt --list --submounts "${DESTDIR}" -o TARGET -n | tac); do umount "$i"