[Bug 253445] bectl: does not function in two-level zfs datasets

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 27 Jul 2022 18:34:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253445

--- Comment #38 from Jonathan Vasquez <jon@xyinn.org> ---
I've converted my existing one layer set up to a two layer one so I now have
the option of either using bectl or doing the snapshotting/cloning myself, and
still be compatible with the boot environment feature in the loader. I've also
updated my guide recommendation accordingly:
https://xyinn.org/md/freebsd/zfs_manual_partition_encrypted

previous layout (all 'canmount' options were 'on'):

tank
tank/os <- this would have a mountpoint set to /
tank/home <- /home

new layout

tank
tank/os <- canmount=off, mountpoint=none
tank/os/main <- main / dataset, canmount=noauto, mountpoint=none
tank/home <- /home

I can now either manually do a:

zfs snapshot tank/os/main@test
zfs clone tank/os/main@test tank/os/test

and reboot and select "tank/os/test" in the bootloader's boot environment
selection, and if it's good I can do a promotion and a deletion and set
'bootfs' on my pool accordingly if needed

or I can do 'bectl create test' and 'bectl activate test'.

I still think this feature is useful but not as high priority for me anymore..
I do prefer my new slightly modified layout :).

-- 
You are receiving this mail because:
You are on the CC list for the bug.