diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2024-02-04 03:19:54 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-02-19 18:41:47 +0100 |
| commit | e73db355b127b9ca2b5339f645f2d3eb6929531f (patch) | |
| tree | 0a53c6cbebb12e8ec63dff87f5dfe2e7426780ad /gnu/services.scm | |
| parent | a5f66c2446c61a072413e417b27fb9499f8b42fa (diff) | |
services: activation: Ensure /var/run existence.
* gnu/services.scm (activation-script): Ensure /var/run existence.
* gnu/build/install.scm (evaluate-populate-directive)
[directives]: Remove directory /var/run.
Change-Id: I5fb93d33b6b1f045f1e5ba206b9b0b74b5184260
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/services.scm')
| -rw-r--r-- | gnu/services.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/services.scm b/gnu/services.scm index 23c3d8a9f4c..59481af10f3 100644 --- a/gnu/services.scm +++ b/gnu/services.scm | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | ;;; Copyright © 2020 Christine Lemmer-Webber <cwebber@dustycloud.org> | 7 | ;;; Copyright © 2020 Christine Lemmer-Webber <cwebber@dustycloud.org> |
| 8 | ;;; Copyright © 2020, 2021 Brice Waegeneire <brice@waegenei.re> | 8 | ;;; Copyright © 2020, 2021 Brice Waegeneire <brice@waegenei.re> |
| 9 | ;;; Copyright © 2023 Brian Cully <bjc@spork.org> | 9 | ;;; Copyright © 2023 Brian Cully <bjc@spork.org> |
| 10 | ;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr> | ||
| 10 | ;;; | 11 | ;;; |
| 11 | ;;; This file is part of GNU Guix. | 12 | ;;; This file is part of GNU Guix. |
| 12 | ;;; | 13 | ;;; |
| @@ -692,6 +693,7 @@ ACTIVATION-SCRIPT-TYPE." | |||
| 692 | (use-modules (gnu build activation) | 693 | (use-modules (gnu build activation) |
| 693 | (guix build utils)) | 694 | (guix build utils)) |
| 694 | 695 | ||
| 696 | (mkdir-p "/var/run") | ||
| 695 | ;; Make sure the user accounting database exists. If it | 697 | ;; Make sure the user accounting database exists. If it |
| 696 | ;; does not exist, 'setutxent' does not create it and | 698 | ;; does not exist, 'setutxent' does not create it and |
| 697 | ;; thus there is no accounting at all. | 699 | ;; thus there is no accounting at all. |
