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

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() { ...@@ -297,7 +297,7 @@ unmount_partitions() {
local mnt="$1" local mnt="$1"
# unmount the partitions # 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 # figure out decent default swap size in mega bytes
......
Markdown is supported
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