aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2012-03-05 20:16:38 +0100
committerTom Gundersen <teg@jklm.no>2012-03-10 00:30:40 +0100
commitbdad979a6f062228c318f0903f3d11c6865c5ff1 (patch)
tree24ef51e66c627bfa0ec4e00c8ded5d749394a451
parentea3f8c5761d7f1cdf693746bc3322d9482b349ce (diff)
downloadinitscripts-bdad979a6f062228c318f0903f3d11c6865c5ff1.tar.xz
netfs: force umounts in order to avoid hanging on NFS
This should hopefully fix problems with umount hanging on shutdown. FWIW, this is also what systemd does. Signed-off-by: Tom Gundersen <teg@jklm.no>
-rwxr-xr-xnetfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/netfs b/netfs
index ea7e4eb..bd459ef 100755
--- a/netfs
+++ b/netfs
@@ -16,9 +16,9 @@ case "$1" in
;;
stop)
stat_busy "Unmounting Network Filesystems"
- umount -a -O _netdev
+ umount -a -f -O _netdev
rc=$?
- umount -a -t "$NETFS"
+ umount -a -f -t "$NETFS"
(( rc || $? )) && stat_die
rm_daemon netfs
stat_done