localmount should only use the -O option for linux systems

This fixes bug #347307.
This commit is contained in:
William Hubbs 2010-11-30 15:40:44 -06:00
parent 82b265016a
commit cdf07b5970

View File

@ -14,13 +14,16 @@ depend()
start() start()
{ {
# Mount local filesystems in /etc/fstab. # Mount local filesystems in /etc/fstab.
local types="noproc" x= local types="noproc" x= no_netdev=
for x in $net_fs_list; do for x in $net_fs_list; do
types="${types},${x}" types="${types},${x}"
done done
if [ "$RC_UNAME" = Linux ]; then
no_netdev="-O no_netdev"
fi
ebegin "Mounting local filesystems" ebegin "Mounting local filesystems"
mount -at "$types" -O no_netdev mount -at "$types" $no_netdev
eend $? "Some local filesystem failed to mount" eend $? "Some local filesystem failed to mount"
# Always return 0 - some local mounts may not be critical for boot # Always return 0 - some local mounts may not be critical for boot