diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-10-01 17:16:14 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-10-01 17:33:43 -0500 |
commit | dac5966ca40610797d2b2aabef17154ca3dc20af (patch) | |
tree | aebc18bcf866017c3d2e700626b2590aebe6879f /init.d/netmount.in | |
parent | 3b6a6df4b5b818e576a88444632d5c73cffd1c57 (diff) |
Revert "local/netmount: remove uses of -O [no]_netdev"
This reverts commit 2a439c85bd69efc14847b4397bd6783cac051405.
There is another use case for -O involving iscsi, so we can't remove it.
Diffstat (limited to 'init.d/netmount.in')
-rw-r--r-- | init.d/netmount.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/init.d/netmount.in b/init.d/netmount.in index d9cf9c56..d1f3cffc 100644 --- a/init.d/netmount.in +++ b/init.d/netmount.in @@ -22,6 +22,10 @@ start() ebegin "Mounting network filesystems" mount -at $fs rc=$? + if [ "$RC_UNAME" = Linux ]; then + mount -a -O _netdev + rc=$? + fi ewend $rc "Could not mount all network filesystems" if [ "$RC_UNAME" != Linux ]; then rc=0 @@ -53,5 +57,9 @@ stop() retval=$? eoutdent + if [ "$RC_UNAME" = Linux ]; then + umount -a -O _netdev + retval=$? + fi eend $retval "Failed to unmount network filesystems" } |