From: Leo Famulari <leo@famulari.name>
To: guix-devel@gnu.org
Subject: Re: 02/11: activation: Allow home directories to be created under /var/lib.
Date: Tue, 6 Sep 2016 14:48:02 -0400 [thread overview]
Message-ID: <20160906184802.GA1049@jasmine> (raw)
In-Reply-To: <20160906155317.D019622017C@vcs.savannah.gnu.org>
On Tue, Sep 06, 2016 at 03:53:17PM +0000, David Craven wrote:
> commit 6526d43ea4fb0cd151a0d5e9a072c651c1c963d1
> Author: David Craven <david@craven.ch>
> Date: Fri Aug 26 21:45:57 2016 +0200
>
> activation: Allow home directories to be created under /var/lib.
>
> * gnu/build/activation.scm (activate-user+groups): Make sure /var/lib
> exists.
> ---
> gnu/build/activation.scm | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/gnu/build/activation.scm b/gnu/build/activation.scm
> index 10aa58d..7dc40b0 100644
> --- a/gnu/build/activation.scm
> +++ b/gnu/build/activation.scm
> @@ -233,6 +233,9 @@ numeric gid or #f."
> ;; '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)
>
This would fail when /var/lib already existed. I fixed it by using
mkdir-p in a7199b7d994433eaabb989690887b921d053d761.
Yesterday was my first time using the system tests:
https://www.gnu.org/software/guix/manual/html_node/Running-the-Test-Suite.html#Running-the-Test-Suite
I assume they would have caught this, but I'm not sure. They definitely
would have caught my breakage of GRUB when I updated QEMU recently ;)
next parent reply other threads:[~2016-09-06 18:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20160906155317.12854.59323@vcs.savannah.gnu.org>
[not found] ` <20160906155317.D019622017C@vcs.savannah.gnu.org>
2016-09-06 18:48 ` Leo Famulari [this message]
2016-09-06 20:04 ` 02/11: activation: Allow home directories to be created under /var/lib David Craven
2016-09-07 12:18 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160906184802.GA1049@jasmine \
--to=leo@famulari.name \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.