mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
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
This commit is contained in:
parent
04aa2aab70
commit
e5078ff321
1 changed files with 3 additions and 3 deletions
|
@ -534,10 +534,10 @@ (define (genimage-type-options image-type 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"))))
|
||||
|
|
Loading…
Reference in a new issue