vfs.root.mountfrom
The kenv(1) variable that identifies a pool for which the options are written.
Specify zfsboot options for the next boot
zfsbootcfg ⟨options⟩
zfsbootcfg [-n
name]
[-k
key]
[-p]
[-t
type]
[-v
value]
[-z
pool]
zfsbootcfg
zfsbootcfg is used to set boot.config(5)-style options to be used by gptzfsboot(8) or loader(8) the next time the machine is booted. Once gptzfsboot(8) or loader(8) reads the information, it is deleted. If booting fails, the machine automatically reverts to the previous boot configuration. The information is stored in a special boot environment area of a ZFS pool.
If used without arguments, zfsbootcfg will output the current boot configuration, if set.
The following options are supported by zfsbootcfg:
-k key
Define key for ⟨key, value⟩ pair.
-n name
Update nvlist name.
-p
Print all information stored in ZFS pool bootenv area.
-t type
Set type of value used in ⟨key, value⟩ pair. Currently supported types are:
If not specified, the default is DATA_TYPE_STRING.
-v value
Define value for ⟨key, value⟩ pair.
-z pool
Operate on pool.
vfs.root.mountfrom
The kenv(1) variable that identifies a pool for which the options are written.
Try to boot to a new boot environment without changing the bootfs property of a pool:
zfsbootcfg "zfs:tank/ROOT/newbe:"
To clear the boot options:
zfsbootcfg ""
24 releases since FreeBSD 11.1-RELEASE; the text changed 11 times.
-k since FreeBSD 13.0-RELEASE;
-n since FreeBSD 13.0-RELEASE;
-p since FreeBSD 13.0-RELEASE;
-t since FreeBSD 13.0-RELEASE;
-v since FreeBSD 13.0-RELEASE;
-z since FreeBSD 13.0-RELEASE.