mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
vm: Add #:name parameter for 'system-disk-image'.
* gnu/system/vm.scm (system-disk-image): Add #:name parameter; pass it to 'qemu-image'.
This commit is contained in:
parent
2c5c696c39
commit
56ef7fcc50
1 changed files with 3 additions and 1 deletions
|
@ -261,6 +261,7 @@ (define* (qemu-image #:key
|
|||
|
||||
(define* (system-disk-image os
|
||||
#:key
|
||||
(name "disk-image")
|
||||
(file-system-type "ext4")
|
||||
(disk-image-size (* 900 (expt 2 20)))
|
||||
(volatile? #t))
|
||||
|
@ -296,7 +297,8 @@ (define file-systems-to-keep
|
|||
|
||||
(mlet* %store-monad ((os-drv (operating-system-derivation os))
|
||||
(grub.cfg (operating-system-grub.cfg os)))
|
||||
(qemu-image #:grub-configuration grub.cfg
|
||||
(qemu-image #:name name
|
||||
#:grub-configuration grub.cfg
|
||||
#:disk-image-size disk-image-size
|
||||
#:disk-image-format "raw"
|
||||
#:file-system-type file-system-type
|
||||
|
|
Loading…
Reference in a new issue