me
/
guix
Archived
1
0
Fork 0

image: Raise error when use both grub-efi* bootloader and not gpt image.

* gnu/system/image.scm: Switch Inversion logic, it allow we use customize
bootloader with gpt image.

Change-Id: I801327f6e826a37588b8f0f5246ca820e742f721
master
Zheng Junjie 2024-05-12 01:40:12 +08:00
parent 04aa2aab70
commit e5078ff321
No known key found for this signature in database
GPG Key ID: 3B5AA993E1A2DFF0
1 changed files with 3 additions and 3 deletions

View File

@ -534,10 +534,10 @@ used in the image."
(image-partition-table-type image)))
(else "")))
(when (and (gpt-image? image)
(when (and (memq (bootloader-name bootloader)
'(grub-efi grub-efi32 grub-efi-removable-bootloader))
(not
(memq (bootloader-name bootloader)
'(grub-efi grub-efi32 grub-efi-removable-bootloader))))
(gpt-image? image)))
(raise
(formatted-message
(G_ "EFI bootloader required with GPT partitioning"))))