[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/13: vm: Always use a native emulator in ‘guix system vm’.
From: |
guix-commits |
Subject: |
01/13: vm: Always use a native emulator in ‘guix system vm’. |
Date: |
Wed, 17 Apr 2024 06:16:46 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit d33965908dc8e21e9c9834ce1061cdcc664295ab
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Apr 16 19:02:17 2024 +0200
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
---
gnu/system/vm.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 7d9d07ebb7..a2743453e7 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -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?
- branch master updated (b47ae1ecc4 -> f594d1bb80), guix-commits, 2024/04/17
- 08/13: gnu: ath9k-htc-firmware: Allow using other targets., guix-commits, 2024/04/17
- 10/13: gnu: cross-binutils: Use binutils-2.33 for ath9k., guix-commits, 2024/04/17
- 04/13: import: github: Recognize more URLs., guix-commits, 2024/04/17
- 01/13: vm: Always use a native emulator in ‘guix system vm’.,
guix-commits <=
- 03/13: gnu: Add guile-rsv., guix-commits, 2024/04/17
- 02/13: linux-initrd: Gracefully handle lack of “modules.builtin” file., guix-commits, 2024/04/17
- 07/13: gnu: ath9k-htc-firmware: Remove binary blobs., guix-commits, 2024/04/17
- 05/13: doc: Add documentation for x86_64-linux-gnux32., guix-commits, 2024/04/17
- 06/13: guix: Add xtensa-ath9k-elf platform., guix-commits, 2024/04/17
- 09/13: gnu: ath9k-htc-firmware: Use xtensa-ath9k-elf., guix-commits, 2024/04/17
- 11/13: gnu: ath9k-htc-firmware: Split package., guix-commits, 2024/04/17
- 12/13: services: Add the Guix Home service., guix-commits, 2024/04/17
- 13/13: doc: Expound on ‘guix-home-service-type’., guix-commits, 2024/04/17