Skip to content
Snippets Groups Projects
Commit f3bde2ff authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

vm: Fix recently-introduced regression in 'operating-system-services' use.

* gnu/system/vm.scm (operating-system-build-gid): Adjust to new return
  type of 'operating-system-services' introduced in 217a5b85.
parent 023f391c
No related branches found
No related tags found
No related merge requests found
...@@ -255,14 +255,14 @@ (define* (qemu-image #:key ...@@ -255,14 +255,14 @@ (define* (qemu-image #:key
(define (operating-system-build-gid os) (define (operating-system-build-gid os)
"Return as a monadic value the group id for build users of OS, or #f." "Return as a monadic value the group id for build users of OS, or #f."
(anym %store-monad (mlet %store-monad ((services (operating-system-services os)))
(lambda (service) (return (any (lambda (service)
(and (equal? '(guix-daemon) (and (equal? '(guix-daemon)
(service-provision service)) (service-provision service))
(match (service-user-groups service) (match (service-user-groups service)
((group) ((group)
(user-group-id group))))) (user-group-id group)))))
(operating-system-services os))) services))))
(define (operating-system-default-contents os) (define (operating-system-default-contents os)
"Return a list of directives suitable for 'system-qemu-image' describing the "Return a list of directives suitable for 'system-qemu-image' describing the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment