summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup-disk.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in
index f265a28..e34e683 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -297,7 +297,7 @@ unmount_partitions() {
local mnt="$1"
# unmount the partitions
- umount $(awk '{print $2}' /proc/mounts | grep ^"$mnt" | sort -r)
+ umount $(awk '{print $2}' /proc/mounts | egrep "^$mnt(/|\$)" | sort -r)
}
# figure out decent default swap size in mega bytes