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/localmount.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/localmount.in')
-rw-r--r-- | init.d/localmount.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/init.d/localmount.in b/init.d/localmount.in index f4bf15f6..29e73486 100644 --- a/init.d/localmount.in +++ b/init.d/localmount.in @@ -15,18 +15,19 @@ depend() start() { # Mount local filesystems in /etc/fstab. - local types="noproc" x= rc= + local types="noproc" x= no_netdev= rc= for x in $net_fs_list $extra_net_fs_list; do types="${types},no${x}" done if [ "$RC_UNAME" = Linux ]; then + no_netdev="-O no_netdev" if mountinfo -q /usr; then touch "$RC_SVCDIR"/usr_premounted fi fi ebegin "Mounting local filesystems" - mount -at "$types" + mount -at "$types" $no_netdev eend $? "Some local filesystem failed to mount" rc=$? if [ "$RC_UNAME" != Linux ]; then |