Date: Thu, 21 Dec 2023 12:59:54 +0000 From: Nuno Teixeira <eduardo@freebsd.org> To: Dimitry Andric <dim@freebsd.org> Cc: FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Re: symlink to /boot/loader.efi Message-ID: <CAFDf7UKxDM1_9DqqHcXZWUc0KYJPfwX0KDn1qzNGQ8GCqU=WqQ@mail.gmail.com> In-Reply-To: <631DF939-4E18-4319-BE94-335E63B27B09@FreeBSD.org> References: <CAFDf7U%2BgTr7D38n9Kh7g4AJh4f0AJ2UVGEDTj5c7ibEBxZZYCQ@mail.gmail.com> <631DF939-4E18-4319-BE94-335E63B27B09@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000bf2524060d04ad18 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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) and > 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 BEs 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 > > --=20 Nuno Teixeira FreeBSD Committer (ports) --000000000000bf2524060d04ad18 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello Dimitry,</div><div><br></div><div>For a moment = I forgot that efiboot is a fat system...</div><div>I am inspired on what in= stallworld does to kernel and kernel.old.</div><div>I was thinking in somet= hing like it but with efi boot, something automatic.<br></div><div><br></di= v><div>Thanks! <br></div></div><br><div class=3D"gmail_quote"><div dir=3D"l= tr" class=3D"gmail_attr">Dimitry Andric <<a href=3D"mailto:dim@freebsd.o= rg">dim@freebsd.org</a>> escreveu no dia quinta, 21/12/2023 =C3=A0(s) 12= :48:<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 21 Dec 2= 023, at 13:22, Nuno Teixeira <<a href=3D"mailto:eduardo@freebsd.org" tar= get=3D"_blank">eduardo@freebsd.org</a>> wrote:<br> > <br> > On every current upgrade I update efi/freebsd/loader.efi (amd64) and e= fi/boot/boota64 (aarch64) with new copies on /boot/loader.efi.<br> > For safety reasons I always have a copy of last running loader by appe= nding "-old.efi" to loader or boota64 and use beinstall to get BE= s if needed.<br> > <br> > Is that possible to link, e.g., /boot/efi/efi/freebsd/loader.efi ->= /boot/loader.efi ?<br> <br> Symlinks do not work on FAT file systems, so I assume you mean a symlink pl= aced in /boot (assuming that is UFS or ZFS), which points to /boot/efi/efi/= freebsd?<br> <br> 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.<br> <br> That said, it would be nice to have some sort of semi-official way of upgra= ding the real EFI loader through installworld. It would probably require so= me top-level Makefile magic.<br> <br> -Dimitry<br> <br> </blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l= tr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committ= er (ports)</span></div></div> --000000000000bf2524060d04ad18--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKxDM1_9DqqHcXZWUc0KYJPfwX0KDn1qzNGQ8GCqU=WqQ>