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>
This commit is contained in:
		
							parent
							
								
									a3beb8d741
								
							
						
					
					
						commit
						c27479a739
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
;;; GNU Guix --- Functional package management for GNU
 | 
					;;; GNU Guix --- Functional package management for GNU
 | 
				
			||||||
;;; Copyright © 2017 Ryan Moe <ryan.moe@gmail.com>
 | 
					;;; 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 © 2020,2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
 | 
				
			||||||
;;; Copyright © 2021 Timotej Lazar <timotej.lazar@araneo.si>
 | 
					;;; Copyright © 2021 Timotej Lazar <timotej.lazar@araneo.si>
 | 
				
			||||||
;;; Copyright © 2022 Oleg Pykhalov <go.wigust@gmail.com>
 | 
					;;; Copyright © 2022 Oleg Pykhalov <go.wigust@gmail.com>
 | 
				
			||||||
| 
						 | 
					@ -962,6 +962,11 @@ specified, the QEMU default path is used."))
 | 
				
			||||||
    (list
 | 
					    (list
 | 
				
			||||||
     (shepherd-service
 | 
					     (shepherd-service
 | 
				
			||||||
      (provision '(qemu-guest-agent))
 | 
					      (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.")
 | 
					      (documentation "Run the QEMU guest agent.")
 | 
				
			||||||
      (start #~(make-forkexec-constructor
 | 
					      (start #~(make-forkexec-constructor
 | 
				
			||||||
                `(,(string-append #$qemu "/bin/qemu-ga")
 | 
					                `(,(string-append #$qemu "/bin/qemu-ga")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue