summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Ángel Arruga Vivas <rosen644835@gmail.com>2019-10-27 03:59:23 +0100
committerLudovic Courtès <ludo@gnu.org>2019-11-05 15:13:15 +0100
commit2dfb9ba4069aa9d9a39935ef43cc09fabe9dbe4d (patch)
treecc8c0701a8a1998c7b92f9eb8b2f95e7158bed67
parent845bf4f477494886476251f40e6ec0702b379897 (diff)
downloadpatches-2dfb9ba4069aa9d9a39935ef43cc09fabe9dbe4d.tar
patches-2dfb9ba4069aa9d9a39935ef43cc09fabe9dbe4d.tar.gz
services: libvirtd: Provide ip binary at runtime.
* gnu/services/virtualization.scm (libvirt-shepherd-service): Add sbin to the PATH variable, as ip binary is installed there. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/services/virtualization.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm
index bc8ac9b40a..2cd4e5e89c 100644
--- a/gnu/services/virtualization.scm
+++ b/gnu/services/virtualization.scm
@@ -433,9 +433,11 @@ potential infinite waits blocking libvirt."))
(start #~(make-forkexec-constructor
(list (string-append #$libvirt "/sbin/libvirtd")
"-f" #$config-file)
+ ;; For finding qemu and ip binaries.
#:environment-variables
- ;; For finding qemu binaries.
- '("PATH=/run/current-system/profile/bin")))
+ (list (string-append
+ "PATH=/run/current-system/profile/bin:"
+ "/run/current-system/profile/sbin"))))
(stop #~(make-kill-destructor))))))
(define libvirt-service-type