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>
This commit is contained in:
Ryan Sundberg 2021-11-04 01:35:11 -07:00 committed by Mathieu Othacehe
parent 39754503e8
commit 096a2bf8c5
No known key found for this signature in database
GPG key ID: 8354763531769CA6
2 changed files with 47 additions and 17 deletions

View file

@ -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