summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/image.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/system/image.scm b/gnu/system/image.scm
index 68a88bda0f2..e272911d2fa 100644
--- a/gnu/system/image.scm
+++ b/gnu/system/image.scm
@@ -355,6 +355,11 @@ set to the given OS."
355 "Return the index of the root partition of the given IMAGE." 355 "Return the index of the root partition of the given IMAGE."
356 (1+ (srfi-1:list-index root-partition? (image-partitions image)))) 356 (1+ (srfi-1:list-index root-partition? (image-partitions image))))
357 357
358(define (bootloader-uses-grub-efi? bootloader)
359 "Return true if the bootloader-name contains grub-efi."
360 (memq (bootloader-name bootloader)
361 (list grub-efi grub-efi32 grub-efi-removable-bootloader)))
362
358 363
359;; 364;;
360;; Disk image. 365;; Disk image.
@@ -547,8 +552,7 @@ used in the image."
547 (image-partition-table-type image))) 552 (image-partition-table-type image)))
548 (else ""))) 553 (else "")))
549 554
550 (when (and (memq (bootloader-name bootloader) 555 (when (and (bootloader-uses-grub-efi? bootloader)
551 '(grub-efi grub-efi32 grub-efi-removable-bootloader))
552 (not 556 (not
553 (gpt-image? image))) 557 (gpt-image? image)))
554 (raise 558 (raise