mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
activation: Allow home directories to be created under /var/lib.
* gnu/build/activation.scm (activate-user+groups): Make sure /var/lib exists.
This commit is contained in:
parent
f2e7be4e29
commit
6526d43ea4
1 changed files with 3 additions and 0 deletions
|
@ -233,6 +233,9 @@ (define activate-user
|
|||
;; 'groupadd' aborts if the file doesn't already exist.
|
||||
(touch "/etc/group")
|
||||
|
||||
;; Allow home directories to be created under /var/lib.
|
||||
(mkdir "/var/lib")
|
||||
|
||||
;; Create the root account so we can use 'useradd' and 'groupadd'.
|
||||
(activate-user (find (match-lambda
|
||||
((name (? zero?) _ ...) #t)
|
||||
|
|
Loading…
Reference in a new issue