Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Dec 2023 08:35:54 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Jeffrey Bouquet <jbtakk@iherebuywisely.com>
Cc:        Nuno Teixeira <eduardo@freebsd.org>, Dimitry Andric <dim@freebsd.org>,  FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: symlink to /boot/loader.efi
Message-ID:  <CANCZdfppFzvXe_2TD2x0GKEU0nev8=0o_EjTvUrE9bVjGDfJSQ@mail.gmail.com>
In-Reply-To: <E1rGKny-0003yc-3Q@rmmprod05.runbox>
References:  <CAFDf7UKxDM1_9DqqHcXZWUc0KYJPfwX0KDn1qzNGQ8GCqU=WqQ@mail.gmail.com> <E1rGKny-0003yc-3Q@rmmprod05.runbox>

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

On Thu, Dec 21, 2023, 8:18=E2=80=AFAM Jeffrey Bouquet <jbtakk@iherebuywisel=
y.com>
wrote:

> I am wondering if all the information in this thread present and future
> should be included in
> the scenarios at the bottom of /usr/ports/UPDATING with technical
> explanations about
> how and why? AFAIK the file was created before UEFI and thus in that
> regard obsolete.


There is more info on updating noe on the man pages, but we likely aren't
there yet. A note in UPDATING sounds like a great idea.

Warner

On Thu, 21 Dec 2023 12:59:54 +0000, Nuno Teixeira <eduardo@freebsd.org>
> wrote:
>
> > Hello Dimitry,
> >
> > For a moment I forgot that efiboot is a fat system...
> > I am inspired on what installworld does to kernel and kernel.old.
> > I was thinking in something like it but with efi boot, something
> automatic.
> >
> > Thanks!
> >
> > Dimitry Andric <dim@freebsd.org> escreveu no dia quinta, 21/12/2023 =C3=
=A0(s)
> > 12:48:
> >
> > > On 21 Dec 2023, at 13:22, Nuno Teixeira <eduardo@freebsd.org> wrote:
> > > >
> > > > On every current upgrade I update efi/freebsd/loader.efi (amd64) an=
d
> > > efi/boot/boota64 (aarch64) with new copies on /boot/loader.efi.
> > > > For safety reasons I always have a copy of last running loader by
> > > appending "-old.efi" to loader or boota64 and use beinstall to get BE=
s
> if
> > > needed.
> > > >
> > > > Is that possible to link, e.g., /boot/efi/efi/freebsd/loader.efi ->
> > > /boot/loader.efi ?
> > >
> > > Symlinks do not work on FAT file systems, so I assume you mean a
> symlink
> > > placed in /boot (assuming that is UFS or ZFS), which points to
> > > /boot/efi/efi/freebsd?
> > >
> > > At the moment I think installworld would not write 'through' such a
> > > symlink. In fact, it makes a hard link from /boot/loader_lua.efi to
> > > /boot/loader.efi, unlinking any previous /boot/loader.efi.
> > >
> > > That said, it would be nice to have some sort of semi-official way of
> > > upgrading the real EFI loader through installworld. It would probably
> > > require some top-level Makefile magic.
> > >
> > > -Dimitry
> > >
> > >
> >
> > --
> > Nuno Teixeira
> > FreeBSD Committer (ports)
>
>
>
>

--000000000000983806060d06db28
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 Thu, Dec 21, 2023, 8:18=E2=80=AFAM Jeffrey Bouquet =
&lt;<a href=3D"mailto:jbtakk@iherebuywisely.com">jbtakk@iherebuywisely.com<=
/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">I am wondering if al=
l the information in this thread present and future should be included in<b=
r>
the scenarios at the bottom of /usr/ports/UPDATING with technical explanati=
ons about<br>
how and why? AFAIK the file was created before UEFI and thus in that regard=
 obsolete.</blockquote></div></div><div dir=3D"auto"><br></div><div dir=3D"=
auto">There is more info on updating noe on the man pages, but we likely ar=
en&#39;t there yet. A note in UPDATING sounds like a great idea.</div><div =
dir=3D"auto"><br></div><div dir=3D"auto">Warner=C2=A0</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;padd=
ing-left:1ex">
On Thu, 21 Dec 2023 12:59:54 +0000, Nuno Teixeira &lt;<a href=3D"mailto:edu=
ardo@freebsd.org" target=3D"_blank" rel=3D"noreferrer">eduardo@freebsd.org<=
/a>&gt; wrote:<br>
<br>
&gt; Hello Dimitry,<br>
&gt; <br>
&gt; For a moment I forgot that efiboot is a fat system...<br>
&gt; I am inspired on what installworld does to kernel and kernel.old.<br>
&gt; I was thinking in something like it but with efi boot, something autom=
atic.<br>
&gt; <br>
&gt; Thanks!<br>
&gt; <br>
&gt; Dimitry Andric &lt;<a href=3D"mailto:dim@freebsd.org" target=3D"_blank=
" rel=3D"noreferrer">dim@freebsd.org</a>&gt; escreveu no dia quinta, 21/12/=
2023 =C3=A0(s)<br>
&gt; 12:48:<br>
&gt; <br>
&gt; &gt; On 21 Dec 2023, at 13:22, Nuno Teixeira &lt;<a href=3D"mailto:edu=
ardo@freebsd.org" target=3D"_blank" rel=3D"noreferrer">eduardo@freebsd.org<=
/a>&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On every current upgrade I update efi/freebsd/loader.efi (am=
d64) and<br>
&gt; &gt; efi/boot/boota64 (aarch64) with new copies on /boot/loader.efi.<b=
r>
&gt; &gt; &gt; For safety reasons I always have a copy of last running load=
er by<br>
&gt; &gt; appending &quot;-old.efi&quot; to loader or boota64 and use beins=
tall to get BEs if<br>
&gt; &gt; needed.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Is that possible to link, e.g., /boot/efi/efi/freebsd/loader=
.efi -&gt;<br>
&gt; &gt; /boot/loader.efi ?<br>
&gt; &gt;<br>
&gt; &gt; Symlinks do not work on FAT file systems, so I assume you mean a =
symlink<br>
&gt; &gt; placed in /boot (assuming that is UFS or ZFS), which points to<br=
>
&gt; &gt; /boot/efi/efi/freebsd?<br>
&gt; &gt;<br>
&gt; &gt; At the moment I think installworld would not write &#39;through&#=
39; such a<br>
&gt; &gt; symlink. In fact, it makes a hard link from /boot/loader_lua.efi =
to<br>
&gt; &gt; /boot/loader.efi, unlinking any previous /boot/loader.efi.<br>
&gt; &gt;<br>
&gt; &gt; That said, it would be nice to have some sort of semi-official wa=
y of<br>
&gt; &gt; upgrading the real EFI loader through installworld. It would prob=
ably<br>
&gt; &gt; require some top-level Makefile magic.<br>
&gt; &gt;<br>
&gt; &gt; -Dimitry<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; <br>
&gt; -- <br>
&gt; Nuno Teixeira<br>
&gt; FreeBSD Committer (ports)<br>
<br>
<br>
<br>
</blockquote></div></div></div>

--000000000000983806060d06db28--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfppFzvXe_2TD2x0GKEU0nev8=0o_EjTvUrE9bVjGDfJSQ>