guix-commits
[Top][All Lists]
Advanced

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

01/01: services: libvirtd: Use '/run/current-system/profile/bin' as PATH


From: guix-commits
Subject: 01/01: services: libvirtd: Use '/run/current-system/profile/bin' as PATH.
Date: Wed, 11 Sep 2019 11:12:13 -0400 (EDT)

iyzsong pushed a commit to branch master
in repository guix.

commit 5df412bfe68ba4937c2f9bfdd995a5b646a7aae8
Author: 宋文武 <address@hidden>
Date:   Wed Sep 11 23:07:52 2019 +0800

    services: libvirtd: Use '/run/current-system/profile/bin' as PATH.
    
    This is a followup to ef640db2f509f51ebfe3a6a66ba837ef3103bbb7.
    
    * gnu/services/virtualization.scm (libvirt-shepherd-service): Set
    '#:environment-variables' for 'make-forkexec-constructor'.
---
 gnu/services/virtualization.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm
index 03aedd3..3eecd2c 100644
--- a/gnu/services/virtualization.scm
+++ b/gnu/services/virtualization.scm
@@ -432,7 +432,10 @@ potential infinite waits blocking libvirt."))
            (provision '(libvirtd))
            (start #~(make-forkexec-constructor
                      (list (string-append #$libvirt "/sbin/libvirtd")
-                           "-f" #$config-file)))
+                           "-f" #$config-file)
+                     #:environment-variables
+                     ;; For finding qemu binaries.
+                     '("PATH=/run/current-system/profile/bin")))
            (stop #~(make-kill-destructor))))))
 
 (define libvirt-service-type



reply via email to

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