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:
David Craven 2016-08-26 21:45:57 +02:00
parent f2e7be4e29
commit 6526d43ea4
No known key found for this signature in database
GPG key ID: C5E051C79C0BECDB

View file

@ -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)