~ruther/guix-local

e5078ff3210f4a9863b641a60430b2cb3c9c15ee — Zheng Junjie 1 year, 10 months ago 04aa2aa
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
1 files changed, 3 insertions(+), 3 deletions(-)

M gnu/system/image.scm
M gnu/system/image.scm => gnu/system/image.scm +3 -3
@@ 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"))))