Date: Sun, 24 Mar 2019 17:32:10 -0700 From: Enji Cooper <yaneurabeya@gmail.com> To: Rebecca Cran <rebecca@bluestop.org> Cc: Warner Losh <imp@bsdimp.com>, Konstantin Belousov <kostikbel@gmail.com>, FreeBSD Hackers <freebsd-hackers@freebsd.org>, "freebsd-arch@freebsd.org" <arch@freebsd.org> Subject: Re: Adding a new efi-update-loader script: need help understanding Makefile.inc1 for "make installworld" Message-ID: <CEADFA63-9086-4EC6-A204-2A49254741B0@gmail.com> In-Reply-To: <5cda4bb9-c10e-2b44-65db-5a9f29f498d8@bluestop.org> References: <642fed43-0535-9ae3-6f01-a943650cd511@bluestop.org> <20190324090103.GO1923@kib.kiev.ua> <e6695237-6a22-3ff0-b113-9efeee05a51a@bluestop.org> <CANCZdfq1vb2-R-R4AZyoqi_940GCooMuhXyjCgSkHSusic5p_w@mail.gmail.com> <5cda4bb9-c10e-2b44-65db-5a9f29f498d8@bluestop.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Mar 24, 2019, at 17:20, Rebecca Cran via freebsd-hackers <freebsd-hacke= rs@freebsd.org> wrote: >=20 >> On 3/24/19 5:57 PM, Warner Losh wrote: >>=20 >>=20 >> He's asking for stopping doing a make install in src/stand. I'm thinking t= hat's a good thing. We should update the ESP's \efi\freebsd\loader.efi, but l= eave the\efi\boot\bootXXXX.efi alone as part of this new installloader phase= . Again, only if the ESP is mounted, and we have a default spot for it. For t= his script, I don't think hunting for the ESP is the right way to go... whic= h means we need to define a standard place for the ESP to be mounted, which w= e should do before we turn on any of these features. >>=20 >> We have the start of a generic script to update things in src/tools/boot/= install-boot.sh which was supposed to install boot blocks on everything know= n to run FreeBSD. >=20 >=20 > Only updating \efi\freebsd\loader.efi is the wrong thing to do in my opini= on: there are situations like on ARM where EFI variables aren't persistent, a= nd we need \efi\boot\bootxxxx.efi for booting. What we could do is check if Q= ueryVariableInfo returns EFI_UNSUPPORTED, in which case we know any changes t= o BootXXXX variables won't survive a reboot, and we need BOOTxxxx.efi. >=20 > Is it safe to assume there's only a single ESP in the system? Is it not no= rmal for there to be one ESP per disk for mirrored configurations, in which c= ase each would need to be updated? >=20 > Do you envision src/tools/boot/install-boot.sh moving to /usr/sbin, or rem= aining where it is? We'd also need to update the ESP for binary installs usi= ng freebsd-update. I was wondering about builds from scratch, as well=E2=80=94images comple= tely lacking boot blocks like Jenkins builds. Thanks! -Enji=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CEADFA63-9086-4EC6-A204-2A49254741B0>