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
@ -287,8 +287,11 @@ useful when FULL-BOOT? is true."
|
||||
#~(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 New Issue
Block a user