aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-11-26 09:57:51 -0500
committerTom Gundersen <teg@jklm.no>2011-11-26 16:56:54 +0100
commitf1f103daccdd73c019edcf21f0059e5d3d5e2336 (patch)
treeee09ca136e15d8384e70d1b1616a4e55fbb2f563 /functions
parent9210d8624c44d0efda356d4bbd7ac44b0afd60b9 (diff)
downloadinitscripts-f1f103daccdd73c019edcf21f0059e5d3d5e2336.tar.xz
functions: read from /etc/mtab in umount_all
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. Reported at: https://bbs.archlinux.org/viewtopic.php?pid=1021427 Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'functions')
-rw-r--r--functions2
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[@]}"