diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-05 12:20:18 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-05 12:20:18 +0000 |
commit | 60ee574a496cad00f61256154df35ad4df2dd82b (patch) | |
tree | 0f22875631eeff80ad8104e6a32d1e8bda2f2d25 /setup-disk.in | |
parent | 2b378636f6cfa33cd2a9268ed17b08d297c07dd4 (diff) | |
download | alpine-conf-60ee574a496cad00f61256154df35ad4df2dd82b.zip |
setup-disk: fix unmount logic
we need anchor on both sides.
Thanks to Jim Pryor for pointing this out.
Diffstat (limited to 'setup-disk.in')
-rw-r--r-- | setup-disk.in | 2 |
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 |