7 # REQUIRE: mountcritlocal
15 required_modules="zfs"
19 if [ `$SYSCTL_N security.jail.mount_allowed` -eq 1 ]; then
29 if [ ! -r /etc/zfs/exports ]; then
30 touch /etc/zfs/exports
32 # Enable swap on ZVOLs with property org.freebsd:swap=on.
33 zfs list -H -o org.freebsd:swap,name -t volume | \
34 while read state name; do
37 swapon /dev/zvol/${name}
45 if [ `$SYSCTL_N security.jail.jailed` -eq 1 ]; then
54 if [ `$SYSCTL_N security.jail.mount_allowed` -eq 1 ]; then
61 # Disable swap on ZVOLs with property org.freebsd:swap=on.
62 zfs list -H -o org.freebsd:swap,name -t volume | \
63 while read state name; do
66 swapoff /dev/zvol/${name}
77 if [ `$SYSCTL_N security.jail.jailed` -eq 1 ]; then