[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#52550] [PATCH 08/10] scripts: system: Pass the volatile field to VM
From: |
Mathieu Othacehe |
Subject: |
[bug#52550] [PATCH 08/10] scripts: system: Pass the volatile field to VM generation. |
Date: |
Thu, 16 Dec 2021 14:06:47 +0100 |
* guix/scripts/system.scm (system-derivation-for-action): Add new volatile?
argument and pass it to system-qemu-image/shared-store-script.
(perform-action): Add new volatile? argument and pass it to
system-derivation-for-action.
(process-action): Pass the volatile? argument to perform-action.
---
guix/scripts/system.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index a5d9bb4779..a73fe55418 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -689,6 +689,7 @@ (define file-systems
(define* (system-derivation-for-action image action
#:key
full-boot?
+ volatile?
(graphic? #t)
container-shared-network?
mappings)
@@ -707,6 +708,7 @@ (define* (system-derivation-for-action image action
((vm)
(system-qemu-image/shared-store-script os
#:full-boot? full-boot?
+ #:volatile? volatile?
#:graphic? graphic?
#:disk-image-size
(if full-boot?
@@ -772,6 +774,7 @@ (define* (perform-action action image
dry-run? derivations-only?
use-substitutes? target
full-boot?
+ volatile?
(graphic? #t)
container-shared-network?
(mappings '())
@@ -826,6 +829,7 @@ (define bootcfg
(mlet* %store-monad
((sys (system-derivation-for-action image action
#:full-boot? full-boot?
+ #:volatile? volatile?
#:graphic? graphic?
#:container-shared-network?
container-shared-network?
#:mappings mappings))
@@ -1277,6 +1281,7 @@ (define (graph-backend)
#:validate-reconfigure
(assoc-ref opts 'validate-reconfigure)
#:full-boot? (assoc-ref opts 'full-boot?)
+ #:volatile? (assoc-ref opts 'volatile-root?)
#:graphic? (not (assoc-ref opts 'no-graphic?))
#:container-shared-network?
(assoc-ref opts 'container-shared-network?)
--
2.34.0
- [bug#52550] [PATCH 00/10] Further work on the image API., Mathieu Othacehe, 2021/12/16
- [bug#52550] [PATCH 01/10] build: image: Add optional closure copy support., Mathieu Othacehe, 2021/12/16
- [bug#52550] [PATCH 03/10] image: Add a shared-network? field., Mathieu Othacehe, 2021/12/16
- [bug#52550] [PATCH 06/10] Remove VM generation dead-code., Mathieu Othacehe, 2021/12/16
- [bug#52550] [PATCH 04/10] system: image: Add docker support., Mathieu Othacehe, 2021/12/16
- [bug#52550] [PATCH 07/10] scripts: system: Deprecate the docker-image command., Mathieu Othacehe, 2021/12/16
- [bug#52550] [PATCH 08/10] scripts: system: Pass the volatile field to VM generation.,
Mathieu Othacehe <=
- [bug#52550] [PATCH 10/10] tests: docker: Fix it., Mathieu Othacehe, 2021/12/16
- [bug#52550] [PATCH 05/10] system: vm: Use the image API to generate QEMU images., Mathieu Othacehe, 2021/12/16
- [bug#52550] [PATCH 02/10] image: Add a shared-store? field., Mathieu Othacehe, 2021/12/16
- [bug#52550] [PATCH 09/10] scripts: system: Use the disk-image size argument for VM generation., Mathieu Othacehe, 2021/12/16
- [bug#52550] [PATCH 00/10] Further work on the image API., Ludovic Courtès, 2021/12/22