all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#31969] [PATCH] bootloader: grub-efi: Identify as "GuixSD" instead of "grub".
@ 2018-06-25 20:50 Marius Bakke
  2018-06-26 14:04 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Marius Bakke @ 2018-06-25 20:50 UTC (permalink / raw)
  To: 31969

* 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" install-dir
+                                "--bootloader-id=GuixSD"
                                 "--efi-directory" target-esp))
           (error "failed to install GRUB (EFI)")))))
 
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#31969] [PATCH] bootloader: grub-efi: Identify as "GuixSD" instead of "grub".
  2018-06-25 20:50 [bug#31969] [PATCH] bootloader: grub-efi: Identify as "GuixSD" instead of "grub" Marius Bakke
@ 2018-06-26 14:04 ` Ludovic Courtès
  2018-06-26 15:05   ` bug#31969: " Marius Bakke
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2018-06-26 14:04 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 31969

Marius Bakke <mbakke@fastmail.com> 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" install-dir
> +                                "--bootloader-id=GuixSD"

What does it do?  I can’t even find it in the manual.

Otherwise no objections from me.

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#31969: [PATCH] bootloader: grub-efi: Identify as "GuixSD" instead of "grub".
  2018-06-26 14:04 ` Ludovic Courtès
@ 2018-06-26 15:05   ` Marius Bakke
  2018-06-26 20:12     ` [bug#31969] " Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Marius Bakke @ 2018-06-26 15:05 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 31969-done

[-- Attachment #1: Type: text/plain, Size: 1474 bytes --]

ludo@gnu.org (Ludovic Courtès) writes:

> Marius Bakke <mbakke@fastmail.com> 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" install-dir
>> +                                "--bootloader-id=GuixSD"
>
> What does it do?  I can’t 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.

> Otherwise no objections from me.

Great, I'll push this shortly.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#31969] [PATCH] bootloader: grub-efi: Identify as "GuixSD" instead of "grub".
  2018-06-26 15:05   ` bug#31969: " Marius Bakke
@ 2018-06-26 20:12     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2018-06-26 20:12 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 31969-done

Marius Bakke <mbakke@fastmail.com> skribis:

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Marius Bakke <mbakke@fastmail.com> 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" install-dir
>>> +                                "--bootloader-id=GuixSD"
>>
>> What does it do?  I can’t 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’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-26 20:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-25 20:50 [bug#31969] [PATCH] bootloader: grub-efi: Identify as "GuixSD" instead of "grub" Marius Bakke
2018-06-26 14:04 ` Ludovic Courtès
2018-06-26 15:05   ` bug#31969: " Marius Bakke
2018-06-26 20:12     ` [bug#31969] " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.