Don't say we're going to mount filesystems of a certain type unless
there actually are filesystems of that type to mount.
This commit is contained in:
parent
3773d8c3cf
commit
69ad4d6960
@ -36,9 +36,15 @@ mountcritremote_start()
|
||||
{
|
||||
# Mount nfs filesystems.
|
||||
#
|
||||
echo -n 'Mounting NFS file systems:'
|
||||
mount -a -t nfs
|
||||
echo '.'
|
||||
case "`/sbin/mount -d -a -t nfs`" in
|
||||
'')
|
||||
;;
|
||||
*)
|
||||
echo -n 'Mounting NFS file systems:'
|
||||
mount -a -t nfs
|
||||
echo '.'
|
||||
;;
|
||||
esac
|
||||
|
||||
# Mount other network filesystems if present in /etc/fstab.
|
||||
case ${extra_netfs_types} in
|
||||
|
@ -16,13 +16,24 @@ stop_cmd=":"
|
||||
|
||||
mountlate_start()
|
||||
{
|
||||
local err
|
||||
local err latefs
|
||||
|
||||
# Mount "late" filesystems.
|
||||
echo -n 'Mounting late file systems:'
|
||||
mount -a -l
|
||||
err=$?
|
||||
echo '.'
|
||||
#
|
||||
err=0
|
||||
latefs=
|
||||
# / (root) fs is always remounted, so remove from list
|
||||
latefs="`/sbin/mount -d -a -l | grep -v ' /$'`"
|
||||
case ${latefs} in
|
||||
'')
|
||||
;;
|
||||
*)
|
||||
echo -n 'Mounting late file systems:'
|
||||
mount -a -l
|
||||
err=$?
|
||||
echo '.'
|
||||
;;
|
||||
esac
|
||||
|
||||
case ${err} in
|
||||
0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user