summary refs log tree commit diff
path: root/gnu/services
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-06-15 14:33:30 +0200
committerLudovic Courtès <ludo@gnu.org>2023-06-16 00:14:52 +0200
commitc27479a739cdbe89be7cb03f73a4a5230e84379d (patch)
tree966429742aabe4da71d155061aae4eb4c7cef8de /gnu/services
parenta3beb8d741e88f30765f4e3bc525c3433bf49498 (diff)
downloadguix-c27479a739cdbe89be7cb03f73a4a5230e84379d.tar.gz
services: qemu-guest-agent: Add dependency on udev.
Fixes <https://issues.guix.gnu.org/64057>.

* gnu/services/virtualization.scm (qemu-guest-agent-shepherd-service):
Add 'requirement' field.

Reported-by: Yann Dupont <yann.dupont@univ-nantes.fr>
Diffstat (limited to 'gnu/services')
-rw-r--r--gnu/services/virtualization.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm
index 2e311e3813..880557915c 100644
--- a/gnu/services/virtualization.scm
+++ b/gnu/services/virtualization.scm
@@ -1,6 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2017 Ryan Moe <ryan.moe@gmail.com>
-;;; Copyright © 2018, 2020-2022 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2018, 2020-2023 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2020,2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
 ;;; Copyright © 2021 Timotej Lazar <timotej.lazar@araneo.si>
 ;;; Copyright © 2022 Oleg Pykhalov <go.wigust@gmail.com>
@@ -962,6 +962,11 @@ specified, the QEMU default path is used."))
     (list
      (shepherd-service
       (provision '(qemu-guest-agent))
+
+      ;; The service needs to depend on udev, which brings up devices like
+      ;; those under /dev/virtio-ports.
+      (requirement '(user-processes udev))
+
       (documentation "Run the QEMU guest agent.")
       (start #~(make-forkexec-constructor
                 `(,(string-append #$qemu "/bin/qemu-ga")