diff options
author | Lukáš Jirkovský <l.jirkovsky@gmail.com> | 2012-11-07 16:05:13 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2012-11-13 14:20:20 +0100 |
commit | 85f147c163d3844901c6cd659f0066e7741811a5 (patch) | |
tree | 56636ca48c68eec9c7a3659e810589a7a0ad7671 /functions | |
parent | 59295c8a1afd993ce8b9c28d2eb8fedfcd8e046c (diff) | |
download | initscripts-85f147c163d3844901c6cd659f0066e7741811a5.tar.xz |
Interpret exscape sequences in the filessytem target while unmounting.
Having recursive unmount would be probably better (see falconindy's
comment on the bug), but IMO this workaround is good enough.
[tomegun: recursive umount will almost certainly be in next util-linux,
but that is still some time away, so we take this for now.]
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -645,6 +645,8 @@ umount_all() { findmnt -mrunRo TARGET,FSTYPE,OPTIONS / | { while read -r target fstype options; do + # interpret the ascii chars, such as \x20 (space) + printf -v target '%b' "$target" # match only targeted fstypes if [[ $1 && $1 != "$fstype" ]]; then continue |