diff options
author | 宋文武 <iyzsong@member.fsf.org> | 2019-09-11 23:07:52 +0800 |
---|---|---|
committer | 宋文武 <iyzsong@member.fsf.org> | 2019-09-11 23:12:02 +0800 |
commit | 5df412bfe68ba4937c2f9bfdd995a5b646a7aae8 (patch) | |
tree | 1bd2ce9bc683aad775113e1fec6688022c5beb25 /gnu/services/virtualization.scm | |
parent | ae9b6dba1943c244acf5a52996e3c82921242c2d (diff) | |
download | guix-5df412bfe68ba4937c2f9bfdd995a5b646a7aae8.tar.gz guix-5df412bfe68ba4937c2f9bfdd995a5b646a7aae8.zip |
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/services/virtualization.scm')
-rw-r--r-- | gnu/services/virtualization.scm | 5 |
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 |