summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRutherther <rutherther@ditigal.xyz>2025-12-01 08:00:00 +0100
committerRutherther <rutherther@ditigal.xyz>2025-12-22 23:00:37 +0100
commit2576c66e4725d6829e602c15f8f95861a36fe383 (patch)
tree38ec8a4a14445eae2ce80f61a0c3d0e68d0bd929 /gnu
parentbb2263102ace6f178410cdc1e49a315bb51a20da (diff)
image: operating-system-for-image: Support AArch64 iso.
Let the user decide for grub/grub-efi in cases where grub-hybrid is unsupported. This is the case on aarch64, where grub-pc is not supported, so only grub-efi can be used. * gnu/system/image.scm (operating-system-for-image): Do not replace bootloader with grub-mkrescue-bootloader for iso9660 when grub-hybrid is not supported. Change-Id: Icd2b68155935b1d9599c1b0df22f0c80a2e36d6a Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/system/image.scm13
1 files changed, 9 insertions, 4 deletions
diff --git a/gnu/system/image.scm b/gnu/system/image.scm
index 0101fe3d6eb..9e9b7cbba47 100644
--- a/gnu/system/image.scm
+++ b/gnu/system/image.scm
@@ -985,11 +985,16 @@ it can be used for bootloading."
file-systems
#:volatile-root? volatile-root?
rest)))
- (bootloader (if (eq? format 'iso9660)
+ ;; Only replace with grub-mkrescue-bootloader if grub-pc
+ ;; is supported. AArch64 doesn't support it. In such
+ ;; cases, respect bootloader of the system. Still,
+ ;; for now make-iso9660-image installs only GRUB.
+ (bootloader (if (and (eq? format 'iso9660)
+ (supported-package? grub-hybrid))
(bootloader-configuration
- (inherit
- (operating-system-bootloader base-os))
- (bootloader grub-mkrescue-bootloader))
+ (inherit
+ (operating-system-bootloader base-os))
+ (bootloader grub-mkrescue-bootloader))
(operating-system-bootloader base-os)))
(file-systems (cons (file-system
(mount-point "/")