mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
vm: Always use a native emulator in ‘guix system vm’.
Suggested by Zheng Junjie <zhengjunjie@iscas.ac.cn>. * gnu/system/vm.scm (system-qemu-image/shared-store-script)[qemu-exec]: Wrap first element in ‘with-parameters’. Change-Id: Iab9905aaa7e80bad0372c1ee7c3ea88a89564f8f
This commit is contained in:
parent
b47ae1ecc4
commit
d33965908d
1 changed files with 5 additions and 2 deletions
|
@ -287,8 +287,11 @@ (define rw-image
|
|||
#~(format #f "/tmp/guix-image-~a" (basename #$base-image)))
|
||||
|
||||
(define qemu-exec
|
||||
#~(list #+(file-append qemu "/bin/"
|
||||
(qemu-command (or target system)))
|
||||
#~(list #+(with-parameters ((%current-system %system)
|
||||
(%current-target-system #f))
|
||||
;; Override %CURRENT-SYSTEM to always use a native emulator.
|
||||
(file-append qemu "/bin/"
|
||||
(qemu-command (or target system))))
|
||||
;; Tells qemu to use the terminal it was started in for IO.
|
||||
#$@(if graphic? '() #~("-nographic"))
|
||||
#$@(if full-boot?
|
||||
|
|
Loading…
Reference in a new issue