1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00

Remove VM generation dead-code.

This code duplicates the (gnu system image) and (gnu build image) code. Using
VM for image generation is not needed, not portable and really slow. Remove
all the VM image generation code to make sure that only the image API is used.

* gnu/build/vm.scm: Remove it. Move the qemu-command procedure to ...
* gnu/build/marionette.scm: ... here.
* gnu/local.mk (GNU_SYSTEM_MODULES): Adapt it.
* tests/modules.scm: Ditto.
* gnu/tests/install.scm: Ditto.
* gnu/system/vm.scm: Adapt it and remove expression->derivation-in-linux-vm,
qemu-img, system-qemu-image/shared-store and system-docker-image procedures.
* doc/guix.texi (G-Expressions): Adapt it.
This commit is contained in:
Mathieu Othacehe
2021-12-16 13:32:11 +01:00
parent da92479674
commit 05a9d1f378
7 changed files with 21 additions and 993 deletions

View File

@@ -39,10 +39,10 @@
(live-module-closure '((gnu build install)))
(source-module-closure '((gnu build install)))))
(test-assert "closure of (gnu build vm)"
(test-assert "closure of (gnu build image)"
(lset= equal?
(live-module-closure '((gnu build vm)))
(source-module-closure '((gnu build vm)))))
(live-module-closure '((gnu build image)))
(source-module-closure '((gnu build image)))))
(test-equal "&missing-dependency-error"
'(something that does not exist)