Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 2024 21:34:27 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
Cc:        Mark Millard <marklmi@yahoo.com>, Current FreeBSD <freebsd-current@freebsd.org>
Subject:   Re: Loader needs to be updated message
Message-ID:  <CANCZdfqWcrUNRxrFKPt2%2BbdfcPXY-cGqHS-qDvAvSXnLuG1vEw@mail.gmail.com>
In-Reply-To: <20240908122425.720c256cbe4a0c6ae77ded0d@dec.sakura.ne.jp>
References:  <FB3F11D6-B5EA-4446-AC01-CBE4511537B9.ref@yahoo.com> <FB3F11D6-B5EA-4446-AC01-CBE4511537B9@yahoo.com> <20240908122425.720c256cbe4a0c6ae77ded0d@dec.sakura.ne.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000f03f2d0621935107
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sat, Sep 7, 2024, 9:24=E2=80=AFPM Tomoaki AOKI <junchoon@dec.sakura.ne.j=
p> wrote:

> On Sat, 7 Sep 2024 19:52:53 -0700
> Mark Millard <marklmi@yahoo.com> wrote:
>
> > Tomoaki AOKI <junchoon_at_dec.sakura.ne.jp> wrote on
> > Date: Sun, 08 Sep 2024 01:54:28 UTC :
> >
> > > On Sun, 8 Sep 2024 02:01:02 +0100
> > > void <void@f-m.fm> wrote:
> > >
> > > > On Sun, Sep 08, 2024 at 09:23:02AM +0900, Tomoaki AOKI wrote:
> > > >
> > > > . . .
> > >
> > > If not automounted, you can mount ESP manually as msdosfs there, at
> > > least for bare-metal host. IIUC, recent installation by bsdinstall
> > > creates fstab entry for it by default.
> >
> > void previously reported:
> >
> > QUOTE
> > # gpart list | grep -E '(Name|type|efi|media)'
> > 1. Name: vtbd0p1
> > efimedia: HD(1,GPT,b7731537-61da-11ed-9652-00a0981073a7,0x28,0x400)
> > rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
> > type: freebsd-boot
> > 2. Name: vtbd0p2
> > efimedia: HD(2,GPT,b77a2687-61da-11ed-9652-00a0981073a7,0x800,0x2000000=
)
> > rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
> > type: freebsd-swap
> > 3. Name: vtbd0p3
> > efimedia:
> HD(3,GPT,b7836ca4-61da-11ed-9652-00a0981073a7,0x2000800,0xdfff000)
> > rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
> > type: freebsd-zfs
> > 1. Name: vtbd0
> > END QUOTE
> >
> > There is no ESP present in the guest. Instead there is a
> > "type: freebsd-boot" partition for which one of the likes of:
> >
> > # ls -lodT /boot/gpt*boot*
> > -r--r--r--  1 root wheel uarch  62139 Apr  7 15:55:46 2024 /boot/gptboo=
t
> > -r-xr-xr-x  1 root wheel uarch 109568 Apr  7 15:55:46 2024
> /boot/gptboot.efi
> > -r--r--r--  1 root wheel uarch 176062 Apr  8 01:15:54 2024
> /boot/gptzfsboot
> >
> > would be in use. None of the 3 support the combination EFI and
> > ZFS-for-root-file-system. The only one of those 3 supporting zfs
> > is: gptzfsboot
> > It is documented to only supports old style BIOS context:
> >
> > "man 8 gptzfsboot" indicates "gptzfsboot is used on BIOS-based
> > computers to boot from a filesystem in a ZFS pool".
> >
> > gptboot and gptboot.efi only support UFS according to their man
> > pages.
> >
> > If EFI is in use, then the ESP-ish partition is not from the guest
> > context but from some place else --unless the man pages are wildly
> > wrong about what is supported for the gpt*boot 's.
> >
> > =3D=3D=3D
> > Mark Millard
> > marklmi at yahoo.com
>
> Ah, I've overlooked that. Thanks.
> So boot1.efi is not usable here just as gptboot.efi.
> gptzfsboot is the only bootcode for freebsd-boot partition on GPT which
> supports ZFS, and corresponding loader WAS zfsloader but IIRC ZFS
> support IS now incorporated into loader[_lua|_4th].
>

Yes. If you are getting the too old error, then there is a preupdate world
booting a stable/13 after my change I think.

Warner

--=20
> Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>
>
>

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

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Sat, Sep 7, 2024, 9:24=E2=80=AFPM Tomoaki AOKI &lt;=
<a href=3D"mailto:junchoon@dec.sakura.ne.jp">junchoon@dec.sakura.ne.jp</a>&=
gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, 7 Sep 2024 19:52=
:53 -0700<br>
Mark Millard &lt;<a href=3D"mailto:marklmi@yahoo.com" target=3D"_blank" rel=
=3D"noreferrer">marklmi@yahoo.com</a>&gt; wrote:<br>
<br>
&gt; Tomoaki AOKI &lt;<a href=3D"http://junchoon_at_dec.sakura.ne.jp" rel=
=3D"noreferrer noreferrer" target=3D"_blank">junchoon_at_dec.sakura.ne.jp</=
a>&gt; wrote on<br>
&gt; Date: Sun, 08 Sep 2024 01:54:28 UTC :<br>
&gt; <br>
&gt; &gt; On Sun, 8 Sep 2024 02:01:02 +0100<br>
&gt; &gt; void &lt;<a href=3D"mailto:void@f-m.fm" target=3D"_blank" rel=3D"=
noreferrer">void@f-m.fm</a>&gt; wrote:<br>
&gt; &gt; <br>
&gt; &gt; &gt; On Sun, Sep 08, 2024 at 09:23:02AM +0900, Tomoaki AOKI wrote=
:<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; . . .<br>
&gt; &gt; <br>
&gt; &gt; If not automounted, you can mount ESP manually as msdosfs there, =
at<br>
&gt; &gt; least for bare-metal host. IIUC, recent installation by bsdinstal=
l<br>
&gt; &gt; creates fstab entry for it by default.<br>
&gt; <br>
&gt; void previously reported:<br>
&gt; <br>
&gt; QUOTE<br>
&gt; # gpart list | grep -E &#39;(Name|type|efi|media)&#39;<br>
&gt; 1. Name: vtbd0p1<br>
&gt; efimedia: HD(1,GPT,b7731537-61da-11ed-9652-00a0981073a7,0x28,0x400)<br=
>
&gt; rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f<br>
&gt; type: freebsd-boot<br>
&gt; 2. Name: vtbd0p2<br>
&gt; efimedia: HD(2,GPT,b77a2687-61da-11ed-9652-00a0981073a7,0x800,0x200000=
0)<br>
&gt; rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b<br>
&gt; type: freebsd-swap<br>
&gt; 3. Name: vtbd0p3<br>
&gt; efimedia: HD(3,GPT,b7836ca4-61da-11ed-9652-00a0981073a7,0x2000800,0xdf=
ff000)<br>
&gt; rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b<br>
&gt; type: freebsd-zfs<br>
&gt; 1. Name: vtbd0<br>
&gt; END QUOTE<br>
&gt; <br>
&gt; There is no ESP present in the guest. Instead there is a<br>
&gt; &quot;type: freebsd-boot&quot; partition for which one of the likes of=
:<br>
&gt; <br>
&gt; # ls -lodT /boot/gpt*boot*<br>
&gt; -r--r--r--=C2=A0 1 root wheel uarch=C2=A0 62139 Apr=C2=A0 7 15:55:46 2=
024 /boot/gptboot<br>
&gt; -r-xr-xr-x=C2=A0 1 root wheel uarch 109568 Apr=C2=A0 7 15:55:46 2024 /=
boot/gptboot.efi<br>
&gt; -r--r--r--=C2=A0 1 root wheel uarch 176062 Apr=C2=A0 8 01:15:54 2024 /=
boot/gptzfsboot<br>
&gt; <br>
&gt; would be in use. None of the 3 support the combination EFI and<br>
&gt; ZFS-for-root-file-system. The only one of those 3 supporting zfs<br>
&gt; is: gptzfsboot<br>
&gt; It is documented to only supports old style BIOS context:<br>
&gt; <br>
&gt; &quot;man 8 gptzfsboot&quot; indicates &quot;gptzfsboot is used on BIO=
S-based<br>
&gt; computers to boot from a filesystem in a ZFS pool&quot;.<br>
&gt; <br>
&gt; gptboot and gptboot.efi only support UFS according to their man<br>
&gt; pages.<br>
&gt; <br>
&gt; If EFI is in use, then the ESP-ish partition is not from the guest<br>
&gt; context but from some place else --unless the man pages are wildly<br>
&gt; wrong about what is supported for the gpt*boot &#39;s.<br>
&gt; <br>
&gt; =3D=3D=3D<br>
&gt; Mark Millard<br>
&gt; marklmi at <a href=3D"http://yahoo.com" rel=3D"noreferrer noreferrer" =
target=3D"_blank">yahoo.com</a><br>
<br>
Ah, I&#39;ve overlooked that. Thanks.<br>
So boot1.efi is not usable here just as gptboot.efi.<br>
gptzfsboot is the only bootcode for freebsd-boot partition on GPT which<br>
supports ZFS, and corresponding loader WAS zfsloader but IIRC ZFS<br>
support IS now incorporated into loader[_lua|_4th].<br></blockquote></div><=
/div><div dir=3D"auto"><br></div><div dir=3D"auto">Yes. If you are getting =
the too old error, then there is a preupdate world booting a stable/13 afte=
r my change I think.</div><div dir=3D"auto"><br></div><div dir=3D"auto">War=
ner</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_=
quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-=
left:1px #ccc solid;padding-left:1ex">
-- <br>
Tomoaki AOKI=C2=A0 =C2=A0 &lt;<a href=3D"mailto:junchoon@dec.sakura.ne.jp" =
target=3D"_blank" rel=3D"noreferrer">junchoon@dec.sakura.ne.jp</a>&gt;<br>
<br>
</blockquote></div></div></div>

--000000000000f03f2d0621935107--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqWcrUNRxrFKPt2%2BbdfcPXY-cGqHS-qDvAvSXnLuG1vEw>