diff options
| author | David Craven <david@craven.ch> | 2016-08-26 21:45:57 +0200 |
|---|---|---|
| committer | David Craven <david@craven.ch> | 2016-09-06 17:48:59 +0200 |
| commit | 6526d43ea4fb0cd151a0d5e9a072c651c1c963d1 (patch) | |
| tree | 8615943a98fd6c59b8ce1fb9a5f325a0cd47d69f /gnu/build/activation.scm | |
| parent | f2e7be4e29fb847207ebdc86023b9283700de42f (diff) | |
activation: Allow home directories to be created under /var/lib.
* gnu/build/activation.scm (activate-user+groups): Make sure /var/lib
exists.
Diffstat (limited to 'gnu/build/activation.scm')
| -rw-r--r-- | gnu/build/activation.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/build/activation.scm b/gnu/build/activation.scm index 10aa58d85cf..7dc40b09612 100644 --- a/gnu/build/activation.scm +++ b/gnu/build/activation.scm | |||
| @@ -233,6 +233,9 @@ numeric gid or #f." | |||
| 233 | ;; 'groupadd' aborts if the file doesn't already exist. | 233 | ;; 'groupadd' aborts if the file doesn't already exist. |
| 234 | (touch "/etc/group") | 234 | (touch "/etc/group") |
| 235 | 235 | ||
| 236 | ;; Allow home directories to be created under /var/lib. | ||
| 237 | (mkdir "/var/lib") | ||
| 238 | |||
| 236 | ;; Create the root account so we can use 'useradd' and 'groupadd'. | 239 | ;; Create the root account so we can use 'useradd' and 'groupadd'. |
| 237 | (activate-user (find (match-lambda | 240 | (activate-user (find (match-lambda |
| 238 | ((name (? zero?) _ ...) #t) | 241 | ((name (? zero?) _ ...) #t) |
