system: image: Use the image name as the disk-image derivation name.

* gnu/system/image.scm (system-disk-image): Use the image name as disk-image
derivation name, if defined. Otherwise use the generic "disk-image" name.
This commit is contained in:
Mathieu Othacehe 2020-06-26 09:04:43 +02:00
parent e6db8912fd
commit 5980ec8ada
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 2 additions and 1 deletions

View File

@ -301,7 +301,8 @@ image ~a {
}~%" #$genimage-name #$image-type (list #$@partitions-config))))))))
(computed-file "genimage.cfg" builder)))
(let* ((substitutable? (image-substitutable? image))
(let* ((name (or (image-name image) name))
(substitutable? (image-substitutable? image))
(builder
(with-imported-modules*
(let ((inputs '#+(list genimage coreutils findutils))