summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
author宋文武 <iyzsong@member.fsf.org>2019-09-11 23:07:52 +0800
committer宋文武 <iyzsong@member.fsf.org>2019-09-11 23:12:02 +0800
commit5df412bfe68ba4937c2f9bfdd995a5b646a7aae8 (patch)
tree1bd2ce9bc683aad775113e1fec6688022c5beb25 /gnu
parentae9b6dba1943c244acf5a52996e3c82921242c2d (diff)
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'.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/services/virtualization.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm
index 03aedd326c..3eecd2c085 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