mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
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>
This commit is contained in:
parent
a5f66c2446
commit
e73db355b1
2 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
;;; Copyright © 2013-2020, 2022 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2013-2020, 2022 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
|
;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
|
||||||
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
|
;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -134,7 +135,6 @@ (define (directives store)
|
||||||
(directory "/var/guix/gcroots")
|
(directory "/var/guix/gcroots")
|
||||||
(directory "/var/empty") ; for no-login accounts
|
(directory "/var/empty") ; for no-login accounts
|
||||||
(directory "/var/db") ; for dhclient, etc.
|
(directory "/var/db") ; for dhclient, etc.
|
||||||
(directory "/var/run")
|
|
||||||
(directory "/run")
|
(directory "/run")
|
||||||
(directory "/mnt")
|
(directory "/mnt")
|
||||||
(directory "/var/guix/profiles/per-user/root" 0 0)
|
(directory "/var/guix/profiles/per-user/root" 0 0)
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
;;; Copyright © 2020 Christine Lemmer-Webber <cwebber@dustycloud.org>
|
;;; Copyright © 2020 Christine Lemmer-Webber <cwebber@dustycloud.org>
|
||||||
;;; Copyright © 2020, 2021 Brice Waegeneire <brice@waegenei.re>
|
;;; Copyright © 2020, 2021 Brice Waegeneire <brice@waegenei.re>
|
||||||
;;; Copyright © 2023 Brian Cully <bjc@spork.org>
|
;;; Copyright © 2023 Brian Cully <bjc@spork.org>
|
||||||
|
;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -692,6 +693,7 @@ (define actions
|
||||||
(use-modules (gnu build activation)
|
(use-modules (gnu build activation)
|
||||||
(guix build utils))
|
(guix build utils))
|
||||||
|
|
||||||
|
(mkdir-p "/var/run")
|
||||||
;; Make sure the user accounting database exists. If it
|
;; Make sure the user accounting database exists. If it
|
||||||
;; does not exist, 'setutxent' does not create it and
|
;; does not exist, 'setutxent' does not create it and
|
||||||
;; thus there is no accounting at all.
|
;; thus there is no accounting at all.
|
||||||
|
|
Loading…
Reference in a new issue