summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorRutherther <rutherther@ditigal.xyz>2025-12-01 08:02:24 +0100
committerRutherther <rutherther@ditigal.xyz>2025-12-22 23:00:38 +0100
commit20157dae27d3ed2c754a5c15aa001f6c268366c3 (patch)
treee6d8ff6f32e096a434dd971c08eec995695d9898 /gnu/system
parent2576c66e4725d6829e602c15f8f95861a36fe383 (diff)
image: Add qcow2-gpt image type.
qcow2 is a mbr-hybrid image. But on aarch64, we have to use grub-efi bootloader. For that bootloader, gpt should be used and Guix errors if it isn't (due to failed check in Guix code). So it's impossible to generate qcow2 type aarch64 image without using customized bootloader. One would have to define their own image instead of using the ones pre-defined. * gnu/system/system.scm (qcow2-gpt-image-type): New variable. * doc/guix.texi: Document qcow2-gpt and its use. Change-Id: I93f0880c7ca2d3f934067c12dd1143ad20828333 Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/image.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/system/image.scm b/gnu/system/image.scm
index 9e9b7cbba47..de975360ae9 100644
--- a/gnu/system/image.scm
+++ b/gnu/system/image.scm
@@ -98,6 +98,7 @@
98 efi-raw-image-type 98 efi-raw-image-type
99 efi32-raw-image-type 99 efi32-raw-image-type
100 qcow2-image-type 100 qcow2-image-type
101 qcow2-gpt-image-type
101 iso-image-type 102 iso-image-type
102 uncompressed-iso-image-type 103 uncompressed-iso-image-type
103 docker-image-type 104 docker-image-type
@@ -265,6 +266,16 @@ set to the given OS."
265 (format 'compressed-qcow2)) 266 (format 'compressed-qcow2))
266 <>)))) 267 <>))))
267 268
269(define qcow2-gpt-image-type
270 (image-type
271 (name 'qcow2-gpt)
272 (constructor (cut image-with-os
273 (image
274 (inherit efi-disk-image)
275 (name 'image.qcow2)
276 (format 'compressed-qcow2))
277 <>))))
278
268(define iso-image-type 279(define iso-image-type
269 (image-type 280 (image-type
270 (name 'iso9660) 281 (name 'iso9660)