https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233657

--- Comment #3 from Rob <rob.fx...@gmail.com> ---
(In reply to Philip Homburg from comment #2)

I don't know how it would.

Given that no error messages are produced, my hunch is bectl is failing to
initialize

'bectl' uses libbe(3) to initialize a boot environment to work from. The
following is a description about 'libbe_init()' from the libbe(3) man page:


     The libbe_init() function takes an optional BE root and initializes
     libbe, returning a libbe_handle_t * on success, or NULL on error.  If a
     BE root is supplied, libbe will only operate out of that pool and BE
     root.  An error may occur if:

     /boot and / are not on the same filesystem and device,
     libzfs fails to initialize,
     The system has not been properly booted with a ZFS boot environment,
     libbe fails to open the zpool the active boot environment resides on, or
     libbe fails to locate the boot environment that is currently mounted.


That may help you trouble-shoot the cause. 

Another thing to try is, pass the root boot environment (i.e. zroot/ROOT) to
bectl explicitly. This is undocumented but, you can pass the '-r' flag before
any of the 'bectl' commands (create, list, destroy, etc.). Here's an example:

To create boot environment named 'bootenv' under the boot root zroot/ROOT
# bectl -r zroot/ROOT create bootenv

To list a boot environment under zroot/ROOT
# bectl -r zroot/ROOT list

I'm curious what you come up with.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to