aboutsummaryrefslogtreecommitdiff
path: root/gnu/system/vm.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-01-29 21:57:56 +0100
committerLudovic Courtès <ludo@gnu.org>2014-01-29 21:57:56 +0100
commitd4254711821f7df93e33aa4a3f6484b901c7b5e3 (patch)
treeef6ffc4e68b2673a0e0bc9a9a8cfeee42633628c /gnu/system/vm.scm
parent735c6dd7faec036adbfa44d927c823ffa9ea1243 (diff)
downloadguix-d4254711821f7df93e33aa4a3f6484b901c7b5e3.tar
guix-d4254711821f7df93e33aa4a3f6484b901c7b5e3.tar.gz
gnu: linux-initrd: Factorize boot code.
* guix/build/linux-initrd.scm (boot-system): New procedure. * gnu/system/linux-initrd.scm (qemu-initrd): Add keyword parameters 'guile-modules-in-chroot?' and 'mounts'. Change builder to simply call 'boot-system'. (gnu-system-initrd): Change to a simple call to 'qemu-initrd'. * gnu/system/vm.scm (expression->derivation-in-linux-vm): Call 'qemu-initrd' with #:guile-modules-in-chroot?.
Diffstat (limited to 'gnu/system/vm.scm')
-rw-r--r--gnu/system/vm.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index fa93654144..151535303a 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -178,9 +178,9 @@ made available under the /xchg CIFS share."
(user-builder (text-file "builder-in-linux-vm"
(object->string exp*)))
(coreutils -> (car (assoc-ref %final-inputs "coreutils")))
- (initrd (if initrd
+ (initrd (if initrd ; use the default initrd?
(return initrd)
- (qemu-initrd))) ; default initrd
+ (qemu-initrd #:guile-modules-in-chroot? #t)))
(inputs (lower-inputs `(("qemu" ,qemu)
("linux" ,linux)
("initrd" ,initrd)