aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/mountcritlocal
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rc/rc.d/mountcritlocal')
-rwxr-xr-xlibexec/rc/rc.d/mountcritlocal13
1 files changed, 13 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/mountcritlocal b/libexec/rc/rc.d/mountcritlocal
index e9b8885279a2..5b80d4bfbb50 100755
--- a/libexec/rc/rc.d/mountcritlocal
+++ b/libexec/rc/rc.d/mountcritlocal
@@ -27,6 +27,15 @@ mountcritlocal_start()
;;
esac
+ while read a b vfstype rest; do
+ if [ "$vfstype" = "zfs" -a "${a#\#}" = "$a" ]; then
+ # zpool is needed for legacy ZFS
+ echo 'Importing zpools for legacy ZFS'
+ /etc/rc.d/zpool start
+ break
+ fi
+ done < /etc/fstab
+
# Mount everything except nfs filesystems.
startmsg -n 'Mounting local filesystems:'
mount_excludes='no'
@@ -60,4 +69,8 @@ mountcritlocal_start()
}
load_rc_config $name
+
+# mounting shall not be performed in a svcj
+mountcritlocal_svcj="NO"
+
run_rc_command "$1"