diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2001-12-29 19:42:55 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2001-12-29 19:42:55 +0000 |
commit | f615512e4a933fd8b368388f25bf20767a69d303 (patch) | |
tree | 045998e6464663a9cebd8b76665b239d9b214902 /etc/rc | |
parent | ef6370195bb01db7d0549e9f701ac500fb5b2332 (diff) | |
download | FreeBSD-src-f615512e4a933fd8b368388f25bf20767a69d303.zip FreeBSD-src-f615512e4a933fd8b368388f25bf20767a69d303.tar.gz |
Don't require operators to override the list of network filesystem
types (networkfs_types) with a version that includes the original
list.
This increases the scope for user error and also means that systems with
networkfs_types set in /etc/rc.conf will not benefit from changes to the
list in /etc/defaults/rc.conf on upgrade.
Instead, store the default list in /etc/rc itself and allow the operator
to append to that list by specifying her own list in networkfs_types.
Rename networkfs_types to extra_netfs_types accordingly, as the new name
better describes the purpose of the variable. Default the value to
'NO'.
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -267,10 +267,18 @@ esac umount -a >/dev/null 2>&1 +# Set up the list of network filesystem types for which mounting should be +# delayed until after network initialization. +networkfs_types='nfs:NFS smbfs:SMB portalfs:PORTAL' +case ${extra_netfs_types} in +[Nn][Oo]) + ;; +*) + networkfs_types="${networkfs_types} ${extra_netfs_types}" + ;; +esac + # Mount everything except nfs filesystems. -if [ -z "${networkfs_types}" ]; then - networkfs_types='nfs:NFS smbfs:SMB portalfs:PORTAL' -fi mount_excludes='no' for i in ${networkfs_types}; do fstype=${i%:*} |