HomeFreeBSD

MFC r342849: libbe(3): Don't allow bootfs to be destroyed

Description

MFC r342849: libbe(3): Don't allow bootfs to be destroyed

Previously, the following sequence of events was feasible under some
circumstance:

bectl create test
bectl activate test

the test BE dataset gets promoted and set as bootfs

bectl destroy test

I was unable to reproduce the destroy succeeding, but we should be rejecting
this before it even gets to libzfs because it would leave the system in an
inconsistent state. Forcing the user to be explicit as to which environment
should be activated instead is much better.

Details

Provenance
kevansAuthored on
Parents
rS343048: Update the note about the need for COMPAT_FREEBSD<n> kernel options.
Branches
Unknown
Tags
Unknown