The kernel won't store options it doesn't understand, so looking for
_netdev in /proc/self/mountinfo is worthless. Note that when /etc/mtab
is a symlink to /proc/self/mounts, libmount-powered mount will read from
/run/mount/utab to find the _netdev option.
Signed-off-by: Dave Reisner
---
Fixes a bug a user wanted to hack around:
https://bbs.archlinux.org/viewtopic.php?pid=1021427
functions | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/functions b/functions
index d796825..8bad79b 100644
--- a/functions
+++ b/functions
@@ -498,7 +498,7 @@ umount_all() {
fi
mounts+=("$target")
- done < <(findmnt -runRo TARGET,FSTYPE,OPTIONS / | tac)
+ done < <(findmnt -mrunRo TARGET,FSTYPE,OPTIONS / | tac)
umount -r "${mounts[@]}"
--
1.7.7.4