zfs_start_main()
{
zfs mount -va
if checkyesno "${zfs_mount_encrypted}"; then
zfs mount -lav
else
fi
zfs share -a
if [ ! -r /etc/zfs/exports ]; then
touch /etc/zfs/exports
}
load_rc_config $name
: ${zfs_mount_encrypted:=no}
run_rc_command "$1"
.Pa /etc/rc.d/zfs
will attempt to automatically mount ZFS file systems and initialize ZFS volumes
(ZVOLs).
.It Va zfs_mount_encrypted
.Pq Vt bool
If set to
.Dq Li YES ,
will attempt to automatically load keys for encrypted ZFS file systems and
will include these encrypted file systems when mounting if
.Pa zfs_enable
is enabled.
.It Va gptboot_enable