mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 06:36:37 -05:00
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.
This commit is contained in:
parent
3ed8ddd606
commit
c37cd41764
1 changed files with 5 additions and 0 deletions
|
@ -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?)
|
||||
|
|
Loading…
Reference in a new issue