bectl should pervent users from using names for Boot Environments that cannot be booted. Example: sudo -A -E bectl create "$(uname -v) $(date '+%Y-%m-%d-%H%M%S')" created a Boot Environment called FreeBSD 12.1-RELEASE-p13 GENERIC 2021-03-20-192857 which turned out to be unbootable, presumably due to the spaces and possibly other special characters in the name.
Context: <https://github.com/helloSystem/Utilities/issues/33#issuecomment-803451767> Please provide output from these two commands: bectl -c creation -s bectl -s
(In reply to Graham Perrin from comment #1) Sorry, these four: bectl list -c creation bectl list -c creation -s beadm list beadm list -s
https://github.com/vermaden/beadm/commit/7c1b1de2a6af28ae3c8dc230a715a3096ecb64ad#commitcomment-13424173
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=0e6549c8745049e3d6fba3ad748034de2d5cbd2a commit 0e6549c8745049e3d6fba3ad748034de2d5cbd2a Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2021-06-03 16:36:11 +0000 Commit: Robert Wing <rew@FreeBSD.org> CommitDate: 2021-06-03 16:36:11 +0000 bectl(8): don't allow creation of boot environments with spaces Boot environment datasets that contain spaces are not bootable. When a user attempts to create a boot environment with a space, abort the creation and print an error message. PR: 254441 Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D30194 sbin/bectl/bectl.c | 9 ++++++++- sbin/bectl/tests/bectl_test.sh | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=01cf73198d1e0b3d00f9bb75027e75327c2c5b9b commit 01cf73198d1e0b3d00f9bb75027e75327c2c5b9b Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2021-06-03 16:36:11 +0000 Commit: Robert Wing <rew@FreeBSD.org> CommitDate: 2021-06-11 17:28:41 +0000 bectl(8): don't allow creation of boot environments with spaces Boot environment datasets that contain spaces are not bootable. When a user attempts to create a boot environment with a space, abort the creation and print an error message. PR: 254441 Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D30194 (cherry picked from commit 0e6549c8745049e3d6fba3ad748034de2d5cbd2a) sbin/bectl/bectl.c | 9 ++++++++- sbin/bectl/tests/bectl_test.sh | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-)
A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=e1dfdff10967d294f8c9acb22812380901be3f80 commit e1dfdff10967d294f8c9acb22812380901be3f80 Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2021-06-03 16:36:11 +0000 Commit: Robert Wing <rew@FreeBSD.org> CommitDate: 2021-06-11 17:41:51 +0000 bectl(8): don't allow creation of boot environments with spaces Boot environment datasets that contain spaces are not bootable. When a user attempts to create a boot environment with a space, abort the creation and print an error message. PR: 254441 Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D30194 (cherry picked from commit 0e6549c8745049e3d6fba3ad748034de2d5cbd2a) sbin/bectl/bectl.c | 9 ++++++++- sbin/bectl/tests/bectl_test.sh | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-)