6 # PROVIDE: mountcritlocal
7 # REQUIRE: root hostid_save mdconfig
8 # KEYWORD: nojail shutdown
13 desc="Mount critical local filesystems"
14 start_cmd="mountcritlocal_start"
17 mountcritlocal_start()
19 local err holders waited
21 # Set up the list of network filesystem types for which mounting
22 # should be delayed until after network initialization.
23 case ${extra_netfs_types} in
27 netfs_types="${netfs_types} ${extra_netfs_types}"
31 # Mount everything except nfs filesystems.
32 check_startmsgs && echo -n 'Mounting local filesystems:'
34 for i in ${netfs_types}; do
36 mount_excludes="${mount_excludes}${fstype},"
38 mount_excludes=${mount_excludes%,}
40 mount -a -t ${mount_excludes}
42 if [ ${err} -ne 0 ]; then
43 echo 'Mounting /etc/fstab filesystems failed,' \
44 'will retry after root mount hold release'
46 mount -a -t ${mount_excludes}
50 check_startmsgs && echo '.'
56 echo 'Mounting /etc/fstab filesystems failed,' \