mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
image: Make the operating-system field mandatory.
Make the operating-system field mandatory as creating an image without it makes no sense. Introduce a new macro, image-without-os for the specific cases where the image is only created to be inherited from afterwards. * gnu/image.scm (<image>)[operating-system]: Make it mandatory. * gnu/system/image.scm (image-without-os): New macro. (efi-disk-image, efi32-disk-image, iso9660-image, docker-image, raw-with-offset-disk-image): Use it. * gnu/system/images/hurd.scm (hurd-disk-image): Ditto.
This commit is contained in:
parent
f38e91a84c
commit
c009c286a2
3 changed files with 14 additions and 8 deletions
|
@ -170,8 +170,7 @@ that is not in SET, mentioning FIELD in the error message."
|
|||
(size image-size ;size in bytes as integer
|
||||
(default 'guess)
|
||||
(sanitize validate-size))
|
||||
(operating-system image-operating-system ;<operating-system>
|
||||
(default #f))
|
||||
(operating-system image-operating-system) ;<operating-system>
|
||||
(partition-table-type image-partition-table-type ; 'mbr or 'gpt
|
||||
(default 'mbr)
|
||||
(sanitize validate-partition-table-type))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue