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

This is a followup to ef640db2f5.

* gnu/services/virtualization.scm (libvirt-shepherd-service): Set
'#:environment-variables' for 'make-forkexec-constructor'.
This commit is contained in:
宋文武 2019-09-11 23:07:52 +08:00
parent ae9b6dba19
commit 5df412bfe6
No known key found for this signature in database
GPG Key ID: D415BF253B515976
1 changed files with 4 additions and 1 deletions

View File

@ -432,7 +432,10 @@ potential infinite waits blocking libvirt."))
(provision '(libvirtd)) (provision '(libvirtd))
(start #~(make-forkexec-constructor (start #~(make-forkexec-constructor
(list (string-append #$libvirt "/sbin/libvirtd") (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)))))) (stop #~(make-kill-destructor))))))
(define libvirt-service-type (define libvirt-service-type