summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2010-11-30 15:40:44 -0600
committerWilliam Hubbs <williamh@gentoo.org>2010-11-30 15:40:44 -0600
commitcdf07b597098704251515ae63f687ac561a61c21 (patch)
treef0a8d427289a39d3a71fe6f729d768ca05df57f5
parent82b265016aadb8827b19319561f5c4cbd2807ff5 (diff)
downloadopenrc-cdf07b597098704251515ae63f687ac561a61c21.tar.gz
openrc-cdf07b597098704251515ae63f687ac561a61c21.tar.bz2
openrc-cdf07b597098704251515ae63f687ac561a61c21.tar.xz
localmount should only use the -O option for linux systems
This fixes bug #347307.
-rw-r--r--init.d/localmount.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/init.d/localmount.in b/init.d/localmount.in
index c9e6653..1a7209c 100644
--- a/init.d/localmount.in
+++ b/init.d/localmount.in
@@ -14,13 +14,16 @@ depend()
start()
{
# Mount local filesystems in /etc/fstab.
- local types="noproc" x=
+ local types="noproc" x= no_netdev=
for x in $net_fs_list; do
types="${types},${x}"
done
+ if [ "$RC_UNAME" = Linux ]; then
+ no_netdev="-O no_netdev"
+ fi
ebegin "Mounting local filesystems"
- mount -at "$types" -O no_netdev
+ mount -at "$types" $no_netdev
eend $? "Some local filesystem failed to mount"
# Always return 0 - some local mounts may not be critical for boot