Date: Thu, 12 May 2022 09:12:59 +0200 From: Michael Schuster <michaelsprivate@gmail.com> To: Dave Cottlehuber <dch@skunkwerks.at> Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: FreeBSD, boot environments and /dev Message-ID: <CADqw_gKemEWYBuaKk3_-cO77=a5bgmyUAZbaQwAJsUXJWzVRhg@mail.gmail.com> In-Reply-To: <5fff8840-6f1e-4edd-8ddf-2728227c8818@www.fastmail.com> References: <CADqw_g%2BUa8oc-cPm6N3ah1Ey1v-nfNk881O2Vp9TquhBcjDj_g@mail.gmail.com> <CAHMcx4PKQzxOCo2GPa7gR544OK7GQrhfbwQ4A8BBQPCteQXKTA@mail.gmail.com> <CADqw_gKY8vUwxX5LzEkhVtv1VggZtPJ10Zt_M8-jbymT0miimg@mail.gmail.com> <481e0739-bdc4-4ce6-a856-a80cf5294d03@www.fastmail.com> <CADqw_gJGGeQRvaUEBiCY_ScrrW8=ORtktRvF2nt7egAbrYhTTw@mail.gmail.com> <5fff8840-6f1e-4edd-8ddf-2728227c8818@www.fastmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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'
[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 11, 2022 at 11:38 PM Dave Cottlehuber <<a href="mailto:dch@skunkwerks.at">dch@skunkwerks.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 11 May 2022, at 14:58, Michael Schuster wrote:<br>
> I then created a new BE, mounted it on /mnt, removed /mnt/dev/* (only<br>
> regular files and empty directories). Booting into that BE didn't work<br>
> either, I got errors about missing "/dev/" files (can't recall the<br>
> exact names).<br>
><br>
> What do you guys (plural ;-)) think?<br></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi Dave,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">thx for your perseverance :-)</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I have (at least) one question for you before I attempt this:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
this works for me:<br>
<br>
# zfs create -o canmount=noauto -o mountpoint=/ zroot/ROOT/vanilla<br>
# bectl mount vanilla /mnt<br>
# cd /some/path/to/sets/<br>
# tar xzpf ./kernel.txz -C /mnt/<br>
# tar xzpf ./base.txz -C /mnt/<br></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">showing my ignorance here: where do I get these .txz files?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
# tzsetup -C /mnt UTC<br>
# pwd_mkdb -p -d /mnt/etc /mnt/etc/master.passwd<br>
# ln -s /usr/home /mnt/home<br>
### copy in & amend /etc/fstab /etc/rc.conf /boot/loader.conf as required<br></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">should devfs be in /etc/fstab? in my current BE, it isn't ... </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">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).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
# bectl activate -t vanilla<br></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">does that ("activate -t") work on UEFI systems? The last time I used it (at least a year ago), it wasn't.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Thx</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Michael</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
# reboot<br>
<br>
try that and let us know what, if any, errors you get?<br>
<br>
A+<br>
Dave<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Michael Schuster<br><a href="http://recursiveramblings.wordpress.com/" target="_blank">http://recursiveramblings.wordpress.com/</a><br></div><div>recursion, n: see 'recursion'<br></div></div></div></div>
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADqw_gKemEWYBuaKk3_-cO77=a5bgmyUAZbaQwAJsUXJWzVRhg>
