beinstall.sh: Use bectl instead of beadm by default This patch also introduces an environment variable BE_UTILITY, which can be used to specify the utility to use for managing ZFS boot environments (which can be either bectl or beadm). While here, fix some typos in the manual page and remove beadm from section "SEE ALSO".
Details
- Reviewers
will brd kevans - Group Reviewers
manpages - Commits
- rS367159: beinstall.sh: Use bectl instead of beadm by default
- Apply the patch
- Upgrade a system with beinstall
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Throwing myself on as a reviewer so I remember to circle back to this... I seem to recall that bectl might have some issue with mount (not mounting everything that might be needed for some setups, maybe?) -- I'll search through my e-mail and get back to this, though.
share/man/man8/beinstall.8 | ||
---|---|---|
83 ↗ | (On Diff #60268) | It seemed like we generally used "FOO_CMD" for this kind of thing, but I might be mixing up conventions between FreeBSD and $work. |
@kevans There is a bug report that bectl might have some problems with the activate command: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239702
FWIW, in consultation w/ @kevans, I did s/beadm/bectl/g on beinstall,sh to get myself out of a problem, and it worked without issue.
tools/build/beinstall.sh | ||
---|---|---|
163 ↗ | (On Diff #60534) | I would consider adding an additional seatbelt here, though this I suppose this is more of an advanced tool: if [ "$(basename ${BE_UTILITY})" = "bectl" ]; then ${BE_UTILITY} check || errx "bectl sanity check failed" fi bectl check was added so that freebsd-update can cleanly not try boot environment stuff if the system doesn't appear to be setup for boot environments. |
tools/build/beinstall.sh | ||
---|---|---|
163 ↗ | (On Diff #60534) | This seems like a good suggestion. |