7 # REQUIRE: mountcritlocal
9 # Handle boot environment subordinate filesystems
10 # that may have canmount property set to noauto.
11 # For these filesystems mountpoint relative to /
12 # must be the same as their dataset name relative
21 required_modules="zfs"
28 zfs list -rH -o mountpoint,name,canmount,mounted -s mountpoint -t filesystem $_be | \
29 while read _mp _name _canmount _mounted ; do
30 # skip filesystems that must not be mounted
31 [ "$_canmount" = "off" ] && continue
32 # skip filesystems that are already mounted
33 [ "$_mounted" = "yes" ] && continue
35 "none" | "legacy" | "/" | "/$_be")
36 # do nothing for filesystems with unset or legacy mountpoint
37 # or those that would be mounted over /
40 # filesystems with mountpoint relative to BE
41 mount -t zfs $_name ${_mp#/$_be}
44 # filesystems with mountpoint elsewhere
53 if [ `$SYSCTL_N security.jail.jailed` -eq 1 ]; then
56 mount -p | while read _dev _mp _type _rest; do
57 [ $_mp = "/" ] || continue
58 if [ $_type = "zfs" ] ; then
59 mount_subordinate $_dev