Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Aug 2024 11:36:32 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Tomek CEDRO <tomek@cedro.info>
Cc:        Daniel Braniss <danny@cs.huji.ac.il>, freebsd-hackers <hackers@freebsd.org>
Subject:   Re: FreeBSD 14.1 and UEFI boot ignores bootme flag
Message-ID:  <CANCZdfp56NwHwiOkjxWEnfACyge%2BnHL0CiSnf_NL5MNswpdHTw@mail.gmail.com>
In-Reply-To: <CAFYkXjk=W6Lsc9LXsFSuRmffGXwAn0nuiXf5kiu7yDXCumGg5g@mail.gmail.com>
References:  <0C0CF611-4C88-4EF1-9F9A-3A35D5236854@cs.huji.ac.il> <CANCZdfoqJkcgvG_oS_nQfQABvq8E5sQO7piggj_42Qf=6iA3PA@mail.gmail.com> <DC5F602B-894C-482F-9519-BB057B6DBB10@cs.huji.ac.il> <CAFYkXjk=W6Lsc9LXsFSuRmffGXwAn0nuiXf5kiu7yDXCumGg5g@mail.gmail.com>

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

On Tue, Aug 13, 2024 at 11:24=E2=80=AFAM Tomek CEDRO <tomek@cedro.info> wro=
te:

> On Tue, Aug 13, 2024 at 3:30=E2=80=AFPM Daniel Braniss <danny@cs.huji.ac.=
il>
> wrote:
> > (..)
> > At some point I succeeded in deleting the dvd, but now I see its back.
>
> This may be added by BIOS / Setup :-)
>
> > So how do I add a second boot partition?
>
> Use efibootmgr as imp suggested and add another entry with desired
> boot information, you may then select this new entry as the default.
> It will show up in BIOS / Setup menu and you can change order over
> there.. but the entry needs to be added with efibootmgr :-)
>

yea, efibootmgr -k is what's needed. You'll need to specify the partition
to boot off of. That's the ideal solution.


> No worries I had the same problem too some time ago, also found
> reference to bootme flag which did not work (should be removed from
> man pages?). Now I sometimes use F8 at boot to select different system
> to boot.. but there are good looking menu like bootloaders for UEFI
> like reEFInd [1], Clover [2], LibreBoot [3]. Maybe we need some more
> documentation on this? :-)
>

These might work. bootme is only documented in the BIOS loader man
page...

There's also an unsupported, may go away in the future gptboot.efi
that you can use if you really must use this setup.. We use it for bootable
USB drives at work, but if it doesn't work for you, I'm not sure I'd fix
bugs
in it.

However, we're moving to ZFS only, and we've found ZFS BEs to be way
more flexible and will be the way of the future. As such, I've stopped
maintaining gptboot.efi and will likely remove it in the future.

Warner


> [1] https://sourceforge.net/projects/refind/
> [2] https://sourceforge.net/projects/cloverefiboot/
> [3] https://libreboot.org/
>
> --
> CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
>

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

<div dir=3D"ltr"><div dir=3D"ltr"></div><br><div class=3D"gmail_quote"><div=
 dir=3D"ltr" class=3D"gmail_attr">On Tue, Aug 13, 2024 at 11:24=E2=80=AFAM =
Tomek CEDRO &lt;<a href=3D"mailto:tomek@cedro.info">tomek@cedro.info</a>&gt=
; wrote:<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">On Tue,=
 Aug 13, 2024 at 3:30=E2=80=AFPM Daniel Braniss &lt;<a href=3D"mailto:danny=
@cs.huji.ac.il" target=3D"_blank">danny@cs.huji.ac.il</a>&gt; wrote:<br>
&gt; (..)<br>
&gt; At some point I succeeded in deleting the dvd, but now I see its back.=
<br>
<br>
This may be added by BIOS / Setup :-)<br>
<br>
&gt; So how do I add a second boot partition?<br>
<br>
Use efibootmgr as imp suggested and add another entry with desired<br>
boot information, you may then select this new entry as the default.<br>
It will show up in BIOS / Setup menu and you can change order over<br>
there.. but the entry needs to be added with efibootmgr :-)<br></blockquote=
><div><br></div><div>yea, efibootmgr -k is what&#39;s needed. You&#39;ll ne=
ed to specify the partition</div><div>to boot off of. That&#39;s the ideal =
solution.</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"=
margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-lef=
t:1ex">
No worries I had the same problem too some time ago, also found<br>
reference to bootme flag which did not work (should be removed from<br>
man pages?). Now I sometimes use F8 at boot to select different system<br>
to boot.. but there are good looking menu like bootloaders for UEFI<br>
like reEFInd [1], Clover [2], LibreBoot [3]. Maybe we need some more<br>
documentation on this? :-)<br></blockquote><div><br></div><div>These might =
work. bootme is only documented in the BIOS loader man</div><div>page...</d=
iv><div><br></div><div>There&#39;s also an unsupported, may go away in the =
future gptboot.efi</div><div>that you can use if you really must use this s=
etup.. We use it for bootable</div><div>USB drives at work, but if it doesn=
&#39;t work for you, I&#39;m not sure I&#39;d fix bugs</div><div>in it.</di=
v><div><br></div><div>However, we&#39;re moving to ZFS only, and we&#39;ve =
found ZFS BEs to be way</div><div>more flexible and will be the way of the =
future. As such, I&#39;ve stopped</div><div>maintaining gptboot.efi and wil=
l likely remove it in the future.</div><div><br></div><div>Warner</div><div=
>=C2=A0</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">
[1] <a href=3D"https://sourceforge.net/projects/refind/" rel=3D"noreferrer"=
 target=3D"_blank">https://sourceforge.net/projects/refind/</a><br>;
[2] <a href=3D"https://sourceforge.net/projects/cloverefiboot/" rel=3D"nore=
ferrer" target=3D"_blank">https://sourceforge.net/projects/cloverefiboot/</=
a><br>
[3] <a href=3D"https://libreboot.org/" rel=3D"noreferrer" target=3D"_blank"=
>https://libreboot.org/</a><br>;
<br>
-- <br>
CeDeROM, SQ7MHZ, <a href=3D"http://www.tomek.cedro.info" rel=3D"noreferrer"=
 target=3D"_blank">http://www.tomek.cedro.info</a><br>;
</blockquote></div></div>

--000000000000945ac2061f940ddc--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfp56NwHwiOkjxWEnfACyge%2BnHL0CiSnf_NL5MNswpdHTw>