Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000005017b305decb4a7f
Content-Type: text/plain; charset="UTF-8"

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'

--0000000000005017b305decb4a7f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:arial,helvetica,sans-serif;font-size:small"><br></div></div><br><d=
iv class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, May =
11, 2022 at 11:38 PM Dave Cottlehuber &lt;<a href=3D"mailto:dch@skunkwerks.=
at">dch@skunkwerks.at</a>&gt; wrote:<br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);padding-left:1ex">On Wed, 11 May 2022, at 14:58, Michael Schuster wrote:=
<br>
&gt; I then created a new BE, mounted it on /mnt, removed /mnt/dev/* (only<=
br>
&gt; regular files and empty directories). Booting into that BE didn&#39;t =
work<br>
&gt; either, I got errors about missing &quot;/dev/&quot; files (can&#39;t =
recall the<br>
&gt; exact names).<br>
&gt;<br>
&gt; What do you guys (plural ;-)) think?<br></blockquote><div><br></div><d=
iv class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;=
font-size:small">Hi Dave,</div><div class=3D"gmail_default" style=3D"font-f=
amily:arial,helvetica,sans-serif;font-size:small">thx for your perseverance=
 :-)</div><div class=3D"gmail_default" style=3D"font-family:arial,helvetica=
,sans-serif;font-size:small"><br></div><div class=3D"gmail_default" style=
=3D"font-family:arial,helvetica,sans-serif;font-size:small">I have (at leas=
t) one question for you before I attempt this:</div><div class=3D"gmail_def=
ault" style=3D"font-family:arial,helvetica,sans-serif;font-size:small"></di=
v><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;borde=
r-left:1px solid rgb(204,204,204);padding-left:1ex">
this works for me:<br>
<br>
# zfs create -o canmount=3Dnoauto -o mountpoint=3D/ 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=3D=
"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;font-size:s=
mall">showing my ignorance here: where do I get these .txz files?</div><div=
 class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;fo=
nt-size:small"><br></div><blockquote class=3D"gmail_quote" style=3D"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 &amp; amend /etc/fstab /etc/rc.conf /boot/loader.conf as requir=
ed<br></blockquote><div><br></div><div class=3D"gmail_default" style=3D"fon=
t-family:arial,helvetica,sans-serif;font-size:small">should devfs be in /et=
c/fstab? in my current BE, it isn&#39;t ...=C2=A0</div><div class=3D"gmail_=
default" style=3D"font-family:arial,helvetica,sans-serif;font-size:small">i=
f so: do you have an example of such a line? In the instances I looked up, =
I wasn&#39;t quite able to make it work (but perhaps that&#39;s a dead end =
anyway).</div><div class=3D"gmail_default" style=3D"font-family:arial,helve=
tica,sans-serif;font-size:small"><br></div><blockquote class=3D"gmail_quote=
" style=3D"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=3D"gm=
ail_default" style=3D"font-family:arial,helvetica,sans-serif;font-size:smal=
l">does that (&quot;activate -t&quot;) work on UEFI systems? The last time =
I used it (at least a year ago), it wasn&#39;t.</div><div class=3D"gmail_de=
fault" style=3D"font-family:arial,helvetica,sans-serif;font-size:small"><br=
></div><div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sa=
ns-serif;font-size:small">Thx</div><div class=3D"gmail_default" style=3D"fo=
nt-family:arial,helvetica,sans-serif;font-size:small">Michael</div><div cla=
ss=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;font-s=
ize:small"><br></div><blockquote class=3D"gmail_quote" style=3D"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=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
 class=3D"gmail_signature"><div dir=3D"ltr"><div>Michael Schuster<br><a hre=
f=3D"http://recursiveramblings.wordpress.com/" target=3D"_blank">http://rec=
ursiveramblings.wordpress.com/</a><br></div><div>recursion, n: see &#39;rec=
ursion&#39;<br></div></div></div></div>

--0000000000005017b305decb4a7f--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADqw_gKemEWYBuaKk3_-cO77=a5bgmyUAZbaQwAJsUXJWzVRhg>