Commit 60ee574a authored by Natanael Copa's avatar Natanael Copa
Browse files

setup-disk: fix unmount logic

we need anchor on both sides.

Thanks to Jim Pryor for pointing this out.
parent 2b378636
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment