Date: Sun, 4 Nov 2018 15:56:25 -0700 From: Warner Losh <imp@bsdimp.com> To: Rebecca Cran <rebecca@bluestop.org> Cc: FreeBSD Current <freebsd-current@freebsd.org>, Toomas Soome <tsoome@me.com> Subject: Re: UEFI: How to go about updating the ESP with loader.efi during installworld Message-ID: <CANCZdfq_ZWZO15nq9aiijE5kT4-4ZwPxjCpENjF40R-in1sriQ@mail.gmail.com> In-Reply-To: <1713323.u6MfGjpqfb@photon.int.bluestop.org> References: <5091656.8gLySxXtyI@photon.int.bluestop.org> <f92ed623-8190-c3b9-cc82-ace86b1c5646@freebsd.org> <E90E3EA6-6B52-4D48-B080-9A5205423E4B@me.com> <1713323.u6MfGjpqfb@photon.int.bluestop.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 4, 2018 at 2:43 PM Rebecca Cran <rebecca@bluestop.org> wrote: > On Sunday, 4 November 2018 14:36:13 MST Toomas Soome wrote: > > > it is reasonable to have efi/freebsd directory, the efi/boot/bootx64.efi > is > > hard one of course. But then again, it is problem only when we can not > > setup EFI bootmanager variables ? the bootx64.efi is default when bootmgr > > is not set up. > > Yes, I think we should only create efi/boot/boot{x64,ia32,aa64,arm}.efi if > it > doesn't already exist in which case we're likely the only OS on the system. > I think that's a really really bad idea. We should *NEVER* create them by default. We are only sliding by on the coat-tails of compatibility by using efi/boot/boot*.efi. We shouldn't use those at all, unless there's a compelling reason (like BIOS bogosity) for doing so. I had no plans to update or use those, at least by default. We should *ONLY* be using those for *REMOVABLE* media, since that's the only place they are well defined in the standard. We should only create files in efi/freebsd and using efibootmgr(8) to point at those. That was my end-goal and it was how to get there that tripped me up and got me distracted from finishing things up. Now, if people want to also create those files, to work around bogus BIOS interpretations of the standard[*], that's fine. We shouldn't preclude that. We maybe should have a script to do it even, but we shouldn't do it by default. We should assume that things can be done the right way and only enable fallbacks on an opt-in basis (and likely not part of installworld, though I can see it is a tempting idea). Warner [*] I'm looking at you Supermicro
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfq_ZWZO15nq9aiijE5kT4-4ZwPxjCpENjF40R-in1sriQ>