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 <= <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 <<a href=3D"mailto:marklmi@yahoo.com" target=3D"_blank" rel= =3D"noreferrer">marklmi@yahoo.com</a>> wrote:<br> <br> > Tomoaki AOKI <<a href=3D"http://junchoon_at_dec.sakura.ne.jp" rel= =3D"noreferrer noreferrer" target=3D"_blank">junchoon_at_dec.sakura.ne.jp</= a>> wrote on<br> > Date: Sun, 08 Sep 2024 01:54:28 UTC :<br> > <br> > > On Sun, 8 Sep 2024 02:01:02 +0100<br> > > void <<a href=3D"mailto:void@f-m.fm" target=3D"_blank" rel=3D"= noreferrer">void@f-m.fm</a>> wrote:<br> > > <br> > > > On Sun, Sep 08, 2024 at 09:23:02AM +0900, Tomoaki AOKI wrote= :<br> > > > <br> > > > . . .<br> > > <br> > > If not automounted, you can mount ESP manually as msdosfs there, = at<br> > > least for bare-metal host. IIUC, recent installation by bsdinstal= l<br> > > creates fstab entry for it by default.<br> > <br> > void previously reported:<br> > <br> > QUOTE<br> > # gpart list | grep -E '(Name|type|efi|media)'<br> > 1. Name: vtbd0p1<br> > efimedia: HD(1,GPT,b7731537-61da-11ed-9652-00a0981073a7,0x28,0x400)<br= > > rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f<br> > type: freebsd-boot<br> > 2. Name: vtbd0p2<br> > efimedia: HD(2,GPT,b77a2687-61da-11ed-9652-00a0981073a7,0x800,0x200000= 0)<br> > rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b<br> > type: freebsd-swap<br> > 3. Name: vtbd0p3<br> > efimedia: HD(3,GPT,b7836ca4-61da-11ed-9652-00a0981073a7,0x2000800,0xdf= ff000)<br> > rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b<br> > type: freebsd-zfs<br> > 1. Name: vtbd0<br> > END QUOTE<br> > <br> > There is no ESP present in the guest. Instead there is a<br> > "type: freebsd-boot" partition for which one of the likes of= :<br> > <br> > # ls -lodT /boot/gpt*boot*<br> > -r--r--r--=C2=A0 1 root wheel uarch=C2=A0 62139 Apr=C2=A0 7 15:55:46 2= 024 /boot/gptboot<br> > -r-xr-xr-x=C2=A0 1 root wheel uarch 109568 Apr=C2=A0 7 15:55:46 2024 /= boot/gptboot.efi<br> > -r--r--r--=C2=A0 1 root wheel uarch 176062 Apr=C2=A0 8 01:15:54 2024 /= boot/gptzfsboot<br> > <br> > would be in use. None of the 3 support the combination EFI and<br> > ZFS-for-root-file-system. The only one of those 3 supporting zfs<br> > is: gptzfsboot<br> > It is documented to only supports old style BIOS context:<br> > <br> > "man 8 gptzfsboot" indicates "gptzfsboot is used on BIO= S-based<br> > computers to boot from a filesystem in a ZFS pool".<br> > <br> > gptboot and gptboot.efi only support UFS according to their man<br> > pages.<br> > <br> > If EFI is in use, then the ESP-ish partition is not from the guest<br> > context but from some place else --unless the man pages are wildly<br> > wrong about what is supported for the gpt*boot 's.<br> > <br> > =3D=3D=3D<br> > Mark Millard<br> > marklmi at <a href=3D"http://yahoo.com" rel=3D"noreferrer noreferrer" = target=3D"_blank">yahoo.com</a><br> <br> Ah, I'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 <<a href=3D"mailto:junchoon@dec.sakura.ne.jp" = target=3D"_blank" rel=3D"noreferrer">junchoon@dec.sakura.ne.jp</a>><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>