7 # REQUIRE: mountcritlocal
8 # BEFORE: mountcritremote
16 required_modules="zfs"
20 if [ `$SYSCTL_N security.jail.mount_allowed` -eq 1 ]; then
30 if [ ! -r /etc/zfs/exports ]; then
31 touch /etc/zfs/exports
33 # Enable swap on ZVOLs with property org.freebsd:swap=on.
34 zfs list -H -o org.freebsd:swap,name -t volume | \
35 while read state name; do
38 swapon /dev/zvol/${name}
46 if [ `$SYSCTL_N security.jail.jailed` -eq 1 ]; then
55 if [ `$SYSCTL_N security.jail.mount_allowed` -eq 1 ]; then
62 # Disable swap on ZVOLs with property org.freebsd:swap=on.
63 zfs list -H -o org.freebsd:swap,name -t volume | \
64 while read state name; do
67 swapoff /dev/zvol/${name}
78 if [ `$SYSCTL_N security.jail.jailed` -eq 1 ]; then