apteryx pushed a commit to branch master
in repository guix.

commit 5074871043806d747b16c62b081b9db8b813dd7c
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Fri Nov 1 10:56:30 2024 +0900

    build: marionette: Make it possible to reboot VM during tests.
    
    * gnu/build/marionette.scm (make-marionette): Add 'reconnect=1' socket
    parameter.
    * gnu/system/vm.scm (common-qemu-options): Remove '-no-reboot' option.
    
    Change-Id: I5e100543ddddba0aea3ebe4e2f5cb8b0261c0d73
---
 gnu/build/marionette.scm | 2 +-
 gnu/system/vm.scm        | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/gnu/build/marionette.scm b/gnu/build/marionette.scm
index 0b0a8a70d8..af211eff43 100644
--- a/gnu/build/marionette.scm
+++ b/gnu/build/marionette.scm
@@ -108,7 +108,7 @@ QEMU monitor and to the guest's backdoor REPL."
     (list "-nographic"
           "-monitor" (string-append "unix:" socket-directory "/monitor")
           "-chardev" (string-append "socket,id=repl,path=" socket-directory
-                                    "/repl")
+                                    "/repl,reconnect=1")
           "-chardev" (string-append "socket,id=qga,server=on,wait=off,path="
                                     socket-directory "/qemu-ga")
 
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 4a400056d7..1e3f72c7b2 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -227,7 +227,6 @@ with '-virtfs' options for the host file systems listed in 
SHARED-FS."
             '("-enable-kvm")
             '())
 
-     "-no-reboot"
      "-object" "rng-random,filename=/dev/urandom,id=guix-vm-rng"
      "-device" "virtio-rng-pci,rng=guix-vm-rng"
 

Reply via email to