guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

09/14: services: hurd-vm: Pass "-no-reboot" when spawning the Hurd VM.


From: guix-commits
Subject: 09/14: services: hurd-vm: Pass "-no-reboot" when spawning the Hurd VM.
Date: Tue, 29 Sep 2020 06:03:44 -0400 (EDT)

civodul pushed a commit to branch wip-childhurd
in repository guix.

commit 40431f03b97b335f7e8dd6a8b73e2f40ee62c16c
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Sep 27 16:00:01 2020 +0200

    services: hurd-vm: Pass "-no-reboot" when spawning the Hurd VM.
    
    * gnu/services/virtualization.scm (hurd-vm-shepherd-service)[vm-command]:
    Add "--no-reboot".
---
 gnu/services/virtualization.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm
index c639fa3..a50cf8b 100644
--- a/gnu/services/virtualization.scm
+++ b/gnu/services/virtualization.scm
@@ -942,7 +942,12 @@ is added to the OS specified in CONFIG."
                       "-m" (number->string #$memory-size)
                       #$@net-options
                       #$@options
-                      "--hda" #+image)
+                      "--hda" #+image
+
+                      ;; Cause the service to be respawned if the guest
+                      ;; reboots (it can reboot for instance if it did not
+                      ;; receive valid secrets, or if it crashed.)
+                      "--no-reboot")
                 (if (file-exists? "/dev/kvm")
                     '("--enable-kvm")
                     '())))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]