Skip to content
Snippets Groups Projects
Commit 56ef7fcc authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

vm: Add #:name parameter for 'system-disk-image'.

* gnu/system/vm.scm (system-disk-image): Add #:name parameter; pass it
  to 'qemu-image'.
parent 2c5c696c
No related branches found
No related tags found
No related merge requests found
...@@ -261,6 +261,7 @@ (define* (qemu-image #:key ...@@ -261,6 +261,7 @@ (define* (qemu-image #:key
(define* (system-disk-image os (define* (system-disk-image os
#:key #:key
(name "disk-image")
(file-system-type "ext4") (file-system-type "ext4")
(disk-image-size (* 900 (expt 2 20))) (disk-image-size (* 900 (expt 2 20)))
(volatile? #t)) (volatile? #t))
...@@ -296,7 +297,8 @@ (define file-systems-to-keep ...@@ -296,7 +297,8 @@ (define file-systems-to-keep
(mlet* %store-monad ((os-drv (operating-system-derivation os)) (mlet* %store-monad ((os-drv (operating-system-derivation os))
(grub.cfg (operating-system-grub.cfg 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-size disk-image-size
#:disk-image-format "raw" #:disk-image-format "raw"
#:file-system-type file-system-type #:file-system-type file-system-type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment