summary refs log tree commit diff
path: root/gnu/image.scm
diff options
context:
space:
mode:
authorRyan Sundberg <ryan@arctype.co>2021-11-04 01:35:11 -0700
committerMathieu Othacehe <othacehe@gnu.org>2021-11-12 12:06:58 +0000
commit096a2bf8c59a955c634cc838e7f7111941c07b37 (patch)
treebba1ab86243c94a565fc3311cb8fafa1d8dcf07c /gnu/image.scm
parent39754503e83f5f50ee25a2bcbac41d5bc436f7aa (diff)
downloadguix-096a2bf8c59a955c634cc838e7f7111941c07b37.tar.gz
image: Support generating GPT images via `partition-table-type`.
* gnu/image.scm (<image>)[partition-table-type]: New field.
* gnu/system/image.scm: Implement partition-table-type logic for
genimage.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Diffstat (limited to 'gnu/image.scm')
-rw-r--r--gnu/image.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/image.scm b/gnu/image.scm
index 2381efa208..1c954af8cf 100644
--- a/gnu/image.scm
+++ b/gnu/image.scm
@@ -38,6 +38,7 @@
             image-platform
             image-size
             image-operating-system
+            image-partition-table-type
             image-partitions
             image-compression?
             image-volatile-root?
@@ -86,6 +87,8 @@
                       (default 'guess))
   (operating-system   image-operating-system  ;<operating-system>
                       (default #f))
+  (partition-table-type image-partition-table-type ; 'mbr or 'gpt
+                      (default 'mbr))
   (partitions         image-partitions ;list of <partition>
                       (default '()))
   (compression?       image-compression? ;boolean