image: Fix ISO image production.

This is a follow-up of 41f27bf870.

* gnu/system/image.scm (operating-system-for-image): Force "volatile-root?" to
true when producing ISO images.
This commit is contained in:
Mathieu Othacehe 2020-12-04 12:36:35 +01:00
parent 2973c74e53
commit 83de7ee662
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -560,7 +560,9 @@ (define (operating-system-for-image image)
"Return an operating-system based on the one specified in IMAGE, but
suitable for image creation. Assign an UUID to the root file-system, so that
it can be used for bootloading."
(define volatile-root? (image-volatile-root? image))
(define volatile-root? (if (eq? (image-format image) 'iso9660)
#t
(image-volatile-root? image)))
(define (root-uuid os)
;; UUID of the root file system, computed in a deterministic fashion.