[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/14: scripts: system: Pass the volatile field to VM generation.
From: |
guix-commits |
Subject: |
08/14: scripts: system: Pass the volatile field to VM generation. |
Date: |
Thu, 23 Dec 2021 04:55:05 -0500 (EST) |
mothacehe pushed a commit to branch master
in repository guix.
commit c37cd417644b010c39d4d7ffb46dffd7b862aaa5
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Thu Dec 16 13:45:00 2021 +0100
scripts: system: Pass the volatile field to VM generation.
* 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 a5d9bb4..a73fe55 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -689,6 +689,7 @@ checking this by themselves in their 'check' procedure."
(define* (system-derivation-for-action image action
#:key
full-boot?
+ volatile?
(graphic? #t)
container-shared-network?
mappings)
@@ -707,6 +708,7 @@ checking this by themselves in their 'check' procedure."
((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 @@ and TARGET arguments."
dry-run? derivations-only?
use-substitutes? target
full-boot?
+ volatile?
(graphic? #t)
container-shared-network?
(mappings '())
@@ -826,6 +829,7 @@ static checks."
(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 @@ resulting from command-line parsing."
#: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?)
- branch master updated (258150f -> 7682145), guix-commits, 2021/12/23
- 01/14: build: image: Add optional closure copy support., guix-commits, 2021/12/23
- 02/14: image: Add a shared-store? field., guix-commits, 2021/12/23
- 03/14: image: Add a shared-network? field., guix-commits, 2021/12/23
- 04/14: system: image: Add docker support., guix-commits, 2021/12/23
- 08/14: scripts: system: Pass the volatile field to VM generation.,
guix-commits <=
- 11/14: services: nfs: Fix statd and mountd ports., guix-commits, 2021/12/23
- 12/14: tests: nfs: Fix nfs-root-fs test., guix-commits, 2021/12/23
- 13/14: scripts: system: Add a missing module., guix-commits, 2021/12/23
- 05/14: system: vm: Use the image API to generate QEMU images., guix-commits, 2021/12/23
- 06/14: Remove VM generation dead-code., guix-commits, 2021/12/23
- 09/14: scripts: system: Use the disk-image size argument for VM generation., guix-commits, 2021/12/23
- 07/14: scripts: system: Deprecate the docker-image command., guix-commits, 2021/12/23
- 14/14: tests: reconfigure: Fix it., guix-commits, 2021/12/23
- 10/14: tests: docker: Fix it., guix-commits, 2021/12/23