Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/zfsbe
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | activate_bootonce() | ||||
_bootonce=$(kenv -q zfs-bootonce) | _bootonce=$(kenv -q zfs-bootonce) | ||||
if [ "$_bootonce" = "zfs:${_dev}:" ] ; then | if [ "$_bootonce" = "zfs:${_dev}:" ] ; then | ||||
bectl activate $_be | bectl activate $_be | ||||
fi | fi | ||||
} | } | ||||
be_start() | be_start() | ||||
{ | { | ||||
if [ `$SYSCTL_N security.jail.jailed` -eq 1 ]; then | if check_jail jailed; then | ||||
: | : | ||||
else | else | ||||
mount -p | while read _dev _mp _type _rest; do | mount -p | while read _dev _mp _type _rest; do | ||||
[ $_mp = "/" ] || continue | [ $_mp = "/" ] || continue | ||||
if [ $_type = "zfs" ] ; then | if [ $_type = "zfs" ] ; then | ||||
mount_subordinate $_dev | mount_subordinate $_dev | ||||
if checkyesno zfs_bootonce_activate; then | if checkyesno zfs_bootonce_activate; then | ||||
activate_bootonce $_dev | activate_bootonce $_dev | ||||
Show All 17 Lines |