diff mbox series

[bug#65335,v2,2/5] gnu: services: activation-script: Ensure /var/run existence.

Message ID 9e7a3ce3a4f0cdaac19705fdbc7e5a2f91ef1c62.1692569807.git.ngraves@ngraves.fr
State New
Headers show
Series [bug#65335,v2,1/5] file-systems: canonicalize-device-name: Ignore the "none" case. | expand

Commit Message

Nicolas Graves Aug. 20, 2023, 10:16 p.m. UTC
---
 gnu/services.scm | 1 +
 1 file changed, 1 insertion(+)

Comments

Ludovic Courtès Aug. 21, 2023, 2:09 p.m. UTC | #1
Nicolas Graves <ngraves@ngraves.fr> skribis:

> ---
>  gnu/services.scm | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/gnu/services.scm b/gnu/services.scm
> index eb9258977e..73235ac2b8 100644
> --- a/gnu/services.scm
> +++ b/gnu/services.scm
> @@ -674,6 +674,7 @@ (define (activation-script gexps)
>                        ;; Make sure the user accounting database exists.  If it
>                        ;; does not exist, 'setutxent' does not create it and
>                        ;; thus there is no accounting at all.
> +                      (mkdir-p "/var/run")
>                        (close-port (open-file "/var/run/utmpx" "a0"))

Please move it before the comment, which talks about something else.

Should /var/run be removed (in the same commit) from ‘directives’ in
(gnu build install)?

Ludo’.
diff mbox series

Patch

diff --git a/gnu/services.scm b/gnu/services.scm
index eb9258977e..73235ac2b8 100644
--- a/gnu/services.scm
+++ b/gnu/services.scm
@@ -674,6 +674,7 @@  (define (activation-script gexps)
                       ;; Make sure the user accounting database exists.  If it
                       ;; does not exist, 'setutxent' does not create it and
                       ;; thus there is no accounting at all.
+                      (mkdir-p "/var/run")
                       (close-port (open-file "/var/run/utmpx" "a0"))
 
                       ;; Same for 'wtmp', which is populated by mingetty et