summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-07-13 16:07:26 +0200
committerLudovic Courtès <ludo@gnu.org>2014-07-13 16:37:11 +0200
commit66670cf39c2f3d294edf3596d8a9173e5289f3a0 (patch)
treecf6cd0500da4a5bf9ce1187ecec7a45e07f09b87 /gnu
parentae9cb418dfe864d8b4383770662fc79484244240 (diff)
vm: Add support for i686.
Partially fixes <http://bugs.gnu.org/18002>. Reported by David Thompson <dthompson2@worcester.edu>. * guix/build/vm.scm (qemu-command): Add optional 'system' parameter. Special-case "^i[3456]86$". * gnu/system/vm.scm (system-qemu-image/shared-store-script): Use it.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/system/vm.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index a90b24305dd..ab3997bd5d4 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -23,6 +23,8 @@
23 #:use-module (guix derivations) 23 #:use-module (guix derivations)
24 #:use-module (guix packages) 24 #:use-module (guix packages)
25 #:use-module (guix monads) 25 #:use-module (guix monads)
26 #:use-module ((guix build vm)
27 #:select (qemu-command))
26 #:use-module ((gnu packages base) 28 #:use-module ((gnu packages base)
27 #:select (%final-inputs)) 29 #:select (%final-inputs))
28 #:use-module (gnu packages guile) 30 #:use-module (gnu packages guile)
@@ -414,7 +416,8 @@ OS that shares its store with the host."
414 (lambda (port) 416 (lambda (port)
415 (display 417 (display
416 (string-append "#!" #$bash "/bin/sh 418 (string-append "#!" #$bash "/bin/sh
417exec " #$qemu "/bin/qemu-system-x86_64 -enable-kvm -no-reboot -net nic,model=virtio \ 419exec " #$qemu "/bin/" #$(qemu-command (%current-system))
420" -enable-kvm -no-reboot -net nic,model=virtio \
418 -virtfs local,path=" #$(%store-prefix) ",security_model=none,mount_tag=store \ 421 -virtfs local,path=" #$(%store-prefix) ",security_model=none,mount_tag=store \
419 -net user \ 422 -net user \
420 -kernel " #$(operating-system-kernel os) "/bzImage \ 423 -kernel " #$(operating-system-kernel os) "/bzImage \