mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
vm: Fix 'load-in-linux-vm' docstring.
* gnu/build/vm.scm (load-in-linux-vm): Change default value of #:disk-image-size. Update docstring to note that DISK-IMAGE-SIZE is in bytes.
This commit is contained in:
parent
1d97fd8cb6
commit
6efb98ed3c
1 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
|
;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
|
||||||
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
|
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
|
||||||
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
|
@ -71,15 +71,16 @@ (define* (load-in-linux-vm builder
|
||||||
output
|
output
|
||||||
(qemu (qemu-command)) (memory-size 512)
|
(qemu (qemu-command)) (memory-size 512)
|
||||||
linux initrd
|
linux initrd
|
||||||
make-disk-image? (disk-image-size 100)
|
make-disk-image?
|
||||||
|
(disk-image-size (* 100 (expt 2 20)))
|
||||||
(disk-image-format "qcow2")
|
(disk-image-format "qcow2")
|
||||||
(references-graphs '()))
|
(references-graphs '()))
|
||||||
"Run BUILDER, a Scheme file, into a VM running LINUX with INITRD, and copy
|
"Run BUILDER, a Scheme file, into a VM running LINUX with INITRD, and copy
|
||||||
the result to OUTPUT.
|
the result to OUTPUT.
|
||||||
|
|
||||||
When MAKE-DISK-IMAGE? is true, OUTPUT will contain a VM image of
|
When MAKE-DISK-IMAGE? is true, OUTPUT will contain a VM image of
|
||||||
DISK-IMAGE-SIZE MiB resulting from the execution of BUILDER, which may access
|
DISK-IMAGE-SIZE bytes resulting from the execution of BUILDER, which may
|
||||||
it via /dev/hda.
|
access it via /dev/hda.
|
||||||
|
|
||||||
REFERENCES-GRAPHS can specify a list of reference-graph files as produced by
|
REFERENCES-GRAPHS can specify a list of reference-graph files as produced by
|
||||||
the #:references-graphs parameter of 'derivation'."
|
the #:references-graphs parameter of 'derivation'."
|
||||||
|
|
Loading…
Reference in a new issue