From f1f103daccdd73c019edcf21f0059e5d3d5e2336 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 26 Nov 2011 09:57:51 -0500 Subject: 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 Signed-off-by: Tom Gundersen --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions') 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[@]}" -- cgit v1.2.3