Re: FreeBSD, boot environments and /dev

From: Dave Cottlehuber <dch_at_skunkwerks.at>
Date: Wed, 11 May 2022 21:37:20 UTC
On Wed, 11 May 2022, at 14:58, Michael Schuster wrote:
> I then created a new BE, mounted it on /mnt, removed /mnt/dev/* (only
> regular files and empty directories). Booting into that BE didn't work
> either, I got errors about missing "/dev/" files (can't recall the
> exact names).
>
> What do you guys (plural ;-)) think?

this works for me:

# zfs create -o canmount=noauto -o mountpoint=/ zroot/ROOT/vanilla
# bectl mount vanilla /mnt
# cd /some/path/to/sets/
# tar xzpf ./kernel.txz -C /mnt/
# tar xzpf ./base.txz -C /mnt/
# tzsetup -C /mnt UTC
# pwd_mkdb -p -d /mnt/etc /mnt/etc/master.passwd
# ln -s /usr/home /mnt/home
### copy in & amend /etc/fstab /etc/rc.conf /boot/loader.conf as required
# bectl activate -t vanilla
# reboot

try that and let us know what, if any, errors you get?

A+
Dave