mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
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 217a5b8
.
This commit is contained in:
parent
023f391c78
commit
f3bde2ff9f
1 changed files with 8 additions and 8 deletions
|
@ -255,14 +255,14 @@ (define* (qemu-image #:key
|
|||
|
||||
(define (operating-system-build-gid os)
|
||||
"Return as a monadic value the group id for build users of OS, or #f."
|
||||
(anym %store-monad
|
||||
(lambda (service)
|
||||
(and (equal? '(guix-daemon)
|
||||
(service-provision service))
|
||||
(match (service-user-groups service)
|
||||
((group)
|
||||
(user-group-id group)))))
|
||||
(operating-system-services os)))
|
||||
(mlet %store-monad ((services (operating-system-services os)))
|
||||
(return (any (lambda (service)
|
||||
(and (equal? '(guix-daemon)
|
||||
(service-provision service))
|
||||
(match (service-user-groups service)
|
||||
((group)
|
||||
(user-group-id group)))))
|
||||
services))))
|
||||
|
||||
(define (operating-system-default-contents os)
|
||||
"Return a list of directives suitable for 'system-qemu-image' describing the
|
||||
|
|
Loading…
Reference in a new issue