GNU bug report logs - #51548
[PATCH] services: Create /run and /var/run on activation.

Previous Next

Package: guix-patches;

Reported by: Tom Fitzhenry <tom <at> tom-fitzhenry.me.uk>

Date: Mon, 1 Nov 2021 11:41:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Tom Fitzhenry <tom <at> tom-fitzhenry.me.uk>
To: 51548 <at> debbugs.gnu.org
Subject: [bug#51548] [PATCH] services: Create /run and /var/run on activation.
Date: Thu, 4 Nov 2021 18:00:18 +1100
Having thought about this patch some more, I think it can be better done.

On 1/11/21 22:39, Tom Fitzhenry wrote:
>                         ;; thus there is no accounting at all.
> +                      (mkdir-p "/var/run")

This line will create /var/run if it doesn't exist during activation. 
This is safe, but there is already code that creates /var/run : 
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/build/install.scm?id=63c356fe13f0c7cc560a1f9aeec4926422c22137#n120 
. This runs on installation.

By adding this line, this responsibility is split across two parts of 
the code base: installation and activation. This could cause confusion.

If, as this patch intends, we want to be able to boot from just /boot, 
/gnu and /var/guix, perhaps we should move 
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/build/install.scm?id=63c356fe13f0c7cc560a1f9aeec4926422c22137#n120 
(and surrounding code) from running at install-time to running at 
activation-time.




This bug report was last modified 3 years and 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.