aboutsummaryrefslogtreecommitdiff
path: root/gnu/system/images
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2022-09-05 18:12:22 +0200
committerMathieu Othacehe <othacehe@gnu.org>2022-09-24 14:20:36 +0200
commitc009c286a23f48b56731c3e7bc4875a9e88857c4 (patch)
tree4d54290b566a05db41c82cf51703e89c7fb8a099 /gnu/system/images
parentf38e91a84c7d5ca72ddfccdf0ed8a3f0917054c0 (diff)
downloadguix-c009c286a23f48b56731c3e7bc4875a9e88857c4.tar
guix-c009c286a23f48b56731c3e7bc4875a9e88857c4.tar.gz
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.
Diffstat (limited to 'gnu/system/images')
-rw-r--r--gnu/system/images/hurd.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/system/images/hurd.scm b/gnu/system/images/hurd.scm
index 6da09b855a..2c64117c08 100644
--- a/gnu/system/images/hurd.scm
+++ b/gnu/system/images/hurd.scm
@@ -74,7 +74,7 @@
#:wal-mode? #f)))))
(define hurd-disk-image
- (image
+ (image-without-os
(format 'disk-image)
(platform hurd)
(partitions