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:
Mike Makonnen 2008-06-22 15:40:19 +00:00
parent 3773d8c3cf
commit 69ad4d6960
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179928
2 changed files with 25 additions and 8 deletions

View File

@ -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

View File

@ -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)