Re: FreeBSD, boot environments and /dev
- Reply: Dave Cottlehuber: "Re: FreeBSD, boot environments and /dev"
- In reply to: Dave Cottlehuber: "Re: FreeBSD, boot environments and /dev"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 May 2022 07:12:59 UTC
On Wed, May 11, 2022 at 11:38 PM Dave Cottlehuber <dch@skunkwerks.at> wrote:
> 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?
>
Hi Dave,
thx for your perseverance :-)
I have (at least) one question for you before I attempt this:
> 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/
>
showing my ignorance here: where do I get these .txz files?
# 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
>
should devfs be in /etc/fstab? in my current BE, it isn't ...
if so: do you have an example of such a line? In the instances I looked up,
I wasn't quite able to make it work (but perhaps that's a dead end anyway).
# bectl activate -t vanilla
>
does that ("activate -t") work on UEFI systems? The last time I used it (at
least a year ago), it wasn't.
Thx
Michael
# reboot
>
> try that and let us know what, if any, errors you get?
>
> A+
> Dave
>
--
Michael Schuster
http://recursiveramblings.wordpress.com/
recursion, n: see 'recursion'