From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXuKl-0006C0-OX for guix-patches@gnu.org; Tue, 26 Jun 2018 16:13:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXuKk-0002lu-O5 for guix-patches@gnu.org; Tue, 26 Jun 2018 16:13:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56963) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fXuKk-0002lc-Ho for guix-patches@gnu.org; Tue, 26 Jun 2018 16:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fXuKk-0001uz-CK for guix-patches@gnu.org; Tue, 26 Jun 2018 16:13:02 -0400 Subject: [bug#31969] [PATCH] bootloader: grub-efi: Identify as "GuixSD" instead of "grub". Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20180625205015.2811-1-mbakke@fastmail.com> <87woul3aqq.fsf@gnu.org> <87k1qly4e1.fsf@fastmail.com> Date: Tue, 26 Jun 2018 22:12:36 +0200 In-Reply-To: <87k1qly4e1.fsf@fastmail.com> (Marius Bakke's message of "Tue, 26 Jun 2018 17:05:42 +0200") Message-ID: <87o9fx2tor.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Marius Bakke Cc: 31969-done@debbugs.gnu.org Marius Bakke skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Marius Bakke skribis: >> >>> * gnu/bootloader/grub.scm (install-grub-efi): Pass "--bootloader-id" to= grub-install. >>> --- >>> gnu/bootloader/grub.scm | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm >>> index 8f45995ca..538ddc37a 100644 >>> --- a/gnu/bootloader/grub.scm >>> +++ b/gnu/bootloader/grub.scm >>> @@ -403,6 +403,7 @@ submenu \"GNU system, old configurations...\" {~%") >>> ;; root partition. >>> (setenv "GRUB_ENABLE_CRYPTODISK" "y") >>> (unless (zero? (system* grub-install "--boot-directory" instal= l-dir >>> + "--bootloader-id=3DGuixSD" >> >> What does it do? I can=E2=80=99t even find it in the manual. > > UEFI firmwares contain a list of boot entries that looks roughly like > "foo: uuid,partnum,/path/to/loader". Try `efibootmgr -v` on an EFI > system for a more practical example. > > If nothing is specified, GRUB will identify as "grub". With this patch, > when you look through the possible boot entries in UEFI, there will be > no doubt which one is GuixSD :-) > > However there is one other practical consequence: the GRUB EFI blob will > now be installed to "/boot/efi/EFI/GuixSD/grubx64.efi". So current UEFI > GuixSD users will have a stale "/boot/efi/EFI/grub" folder that is no > longer needed. Oh, I see now. Thanks for explaining! Ludo=E2=80=99.