system: image: Add image-type support.
authorMathieu Othacehe <m.othacehe@gmail.com>
Fri, 31 Jul 2020 14:49:28 +0000 (16:49 +0200)
committerMathieu Othacehe <othacehe@gnu.org>
Wed, 30 Sep 2020 08:47:59 +0000 (10:47 +0200)
commit10b135cef54348e48805bd9c64b463c465c65eb5
treec6b9d108124eb63d0127eb5db0add0d8444635b3
parent99d036ce8402326352c8aa181d89c6d0c7ce85a8
system: image: Add image-type support.

* gnu/system/image.scm (image-with-os): New macro. Rename the old
"image-with-os" procedure to ...
(image-with-os*): ... this new procedure,
(system-image): adapt according,
(raw-image-type, iso-image-type, uncompressed-iso-image-type
%image-types): new variables,
(lookup-image-type-by-name): new procedure.
(find-image): remove it.
* gnu/system/images/hurd.scm (hurd-image-type): New variable,
use it to define ...
(hurd-disk-image): ... this variable, using "os->image" procedure.
* gnu/tests/install.scm (run-install): Rename
installation-disk-image-file-system-type parameter to installation-image-type,
use os->config instead of find-image to compute the image passed to system-image,
(%test-iso-image-installer) adapt accordingly,
(guided-installation-test): ditto.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
gnu/system/image.scm
gnu/system/images/hurd.scm
gnu/tests/install.scm