Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Mar 2019 17:57:12 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Rebecca Cran <rebecca@bluestop.org>
Cc:        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:  <CANCZdfq1vb2-R-R4AZyoqi_940GCooMuhXyjCgSkHSusic5p_w@mail.gmail.com>
In-Reply-To: <e6695237-6a22-3ff0-b113-9efeee05a51a@bluestop.org>
References:  <642fed43-0535-9ae3-6f01-a943650cd511@bluestop.org> <20190324090103.GO1923@kib.kiev.ua> <e6695237-6a22-3ff0-b113-9efeee05a51a@bluestop.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 24, 2019 at 5:48 PM Rebecca Cran via freebsd-hackers <
freebsd-hackers@freebsd.org> wrote:

> On 3/24/19 3:01 AM, Konstantin Belousov wrote:
>
> >
> > Can we take use of the opportunity and finally stop installing loader
> > at installworld target at all, please ?
> >
> > Add e.g. installloader target which would do whatever needed to loader.
>
>
> Others have suggested adding a new step as well. I'm not sure we need it
> as a make target, but perhaps a generic script such as "update-loader"
> that will call "efi-update-loader" if on a UEFI system, or "boot0cfg"
> etc. on an MBR system (i.e. it knows how to install boot/loader code for
> all systems we support)? Also, about the naming: would you prefer
> 'install' or 'update' in the script name?
>
>
> When you say "stop installing loader", do you mean stop installing
> /boot/loader* entirely, or leave installworld installing those, but have
> updating the ESP as the extra step?
>

He's asking for stopping doing a make install in src/stand. I'm thinking
that's a good thing. We should update the ESP's \efi\freebsd\loader.efi,
but leave 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 this script, I don't think hunting for the ESP is the right way to
go... which means we need to define a standard place for the ESP to be
mounted, which we should do before we turn on any of these features.

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 known to run FreeBSD.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfq1vb2-R-R4AZyoqi_940GCooMuhXyjCgSkHSusic5p_w>