image: Do not use VM to create disk-images.
authorMathieu Othacehe <othacehe@gnu.org>
Sat, 23 May 2020 17:10:28 +0000 (19:10 +0200)
committerMathieu Othacehe <othacehe@gnu.org>
Fri, 29 May 2020 07:12:11 +0000 (09:12 +0200)
commite3f0155c41b28510f77e113ca2d37f0e7d90a2ca
tree7c45059e84ab154f5f0f4acd8481042fcbb66079
parentb7b45372e713a53ffa852aec1d3bfb743bb79124
image: Do not use VM to create disk-images.

Now that installing Grub on raw disk-images is supported, we do not need to
rely on (gnu system vm) module.

* gnu/system/image.scm (make-system-image): Rename to ...
(system-image): ... this, and remove the compatibility wrapper.
(find-image): Turn to a monadic procedure. This will become useful when
introducing Hurd support, to be able to detect the target system.
* gnu/ci.scm (qemu-jobs): Use lower-object now that system-image returns a
file-like object.
* gnu/tests/install.scm (run-install): Ditto.
* guix/scripts/system.scm (system-derivation-for-action): Add a 'base-image'
argument,
(perform-action): adapt accordingly.
gnu/ci.scm
gnu/system/image.scm
gnu/tests/install.scm
guix/scripts/system.scm