From 810568b35f7e5a15f3c4420eee1163fe5274cf2c Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 8 Nov 2014 15:02:48 +0100 Subject: vm: The 'run-vm' scripts now passes its arguments to QEMU. * gnu/system/vm.scm (system-qemu-image/shared-store-script): Add "$@" at the end of the script. (common-qemu-options): Remove trailing newline. * doc/guix.texi (Invoking guix system): Document it. --- gnu/system/vm.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu/system') diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index efe943a7b4..12660d4abc 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -411,7 +411,7 @@ bootloader refers to: OS kernel, initrd, bootloader data, etc." -serial stdio \ -drive file=" #$image ",if=virtio,cache=writeback,werror=report,readonly \ - -m 256\n")) + -m 256")) (define* (system-qemu-image/shared-store-script os #:key @@ -447,7 +447,8 @@ exec " #$qemu "/bin/" #$(qemu-command (%current-system)) -initrd " #$os-drv "/initrd \ -append \"" #$(if graphic? "" "console=ttyS0 ") "--system=" #$os-drv " --load=" #$os-drv "/boot --root=/dev/vda1\" ")) -#$(common-qemu-options image)) +#$(common-qemu-options image) +" \"$@\"\n") port) (chmod port #o555)))) -- cgit v1.2.3