local/netmount: remove uses of -O [no]_netdev
This was causing an incompatibility with busybox, and we do not use it in Gentoo.
This commit is contained in:
@@ -15,19 +15,18 @@ depend()
|
||||
start()
|
||||
{
|
||||
# Mount local filesystems in /etc/fstab.
|
||||
local types="noproc" x= no_netdev=
|
||||
local types="noproc" x=
|
||||
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" $no_netdev
|
||||
mount -at "$types"
|
||||
eend $? "Some local filesystem failed to mount"
|
||||
}
|
||||
|
||||
|
@@ -22,10 +22,6 @@ 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"
|
||||
}
|
||||
|
||||
@@ -53,9 +49,5 @@ stop()
|
||||
retval=$?
|
||||
|
||||
eoutdent
|
||||
if [ "$RC_UNAME" = Linux ]; then
|
||||
umount -a -O _netdev
|
||||
retval=$?
|
||||
fi
|
||||
eend $retval "Failed to unmount network filesystems"
|
||||
}
|
||||
|
Reference in New Issue
Block a user