mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
services: account: Make 'user-homes' a one-shot service.
* gnu/system/shadow.scm (account-shepherd-service): Add 'one-shot?' field. Return #t from 'start'.
This commit is contained in:
parent
95ef8b85b1
commit
051b279fd0
1 changed files with 2 additions and 3 deletions
|
@ -323,6 +323,7 @@ (define accounts
|
|||
(list (shepherd-service
|
||||
(requirement '(file-systems))
|
||||
(provision '(user-homes))
|
||||
(one-shot? #t)
|
||||
(modules '((gnu build activation)
|
||||
(gnu system accounts)))
|
||||
(start (with-imported-modules (source-module-closure
|
||||
|
@ -332,9 +333,7 @@ (define accounts
|
|||
(activate-user-home
|
||||
(map sexp->user-account
|
||||
(list #$@(map user-account->gexp accounts))))
|
||||
#f))) ;stop
|
||||
(stop #~(const #f))
|
||||
(respawn? #f)
|
||||
#t))) ;success
|
||||
(documentation "Create user home directories."))))
|
||||
|
||||
(define (shells-file shells)
|
||||
|
|
Loading…
Reference in a new issue