[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: services: cuirass: Create the profile and GC root directory.
From: |
guix-commits |
Subject: |
04/07: services: cuirass: Create the profile and GC root directory. |
Date: |
Tue, 1 Jun 2021 17:27:29 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit ec9307ea079fa6b25c51f7fde3114f1d9183f497
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Jun 1 21:33:16 2021 +0200
services: cuirass: Create the profile and GC root directory.
* gnu/services/cuirass.scm (cuirass-activation): Create
/var/guix/profiles/per-user/cuirass/cuirass or similar.
---
gnu/services/cuirass.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gnu/services/cuirass.scm b/gnu/services/cuirass.scm
index 5b4e24d..2daf308 100644
--- a/gnu/services/cuirass.scm
+++ b/gnu/services/cuirass.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
-;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès
<ludo@gnu.org>
;;; Copyright © 2017, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2017 Jan Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
@@ -272,6 +272,8 @@
remote-server)))
(user (cuirass-configuration-user config))
(log "/var/log/cuirass")
+ (profile (string-append "/var/guix/profiles/per-user/" user))
+ (roots (string-append profile "/cuirass"))
(group (cuirass-configuration-group config)))
(with-imported-modules '((guix build utils))
#~(begin
@@ -279,6 +281,7 @@
(mkdir-p #$cache)
(mkdir-p #$log)
+ (mkdir-p #$roots)
(when #$remote-cache
(mkdir-p #$remote-cache))
@@ -287,6 +290,8 @@
(gid (group:gid (getgr #$group))))
(chown #$cache uid gid)
(chown #$log uid gid)
+ (chown #$roots uid gid)
+ (chown #$profile uid gid)
(when #$remote-cache
(chown #$remote-cache uid gid)))))))
- branch master updated (49b1570 -> 2df1c4f), guix-commits, 2021/06/01
- 01/07: maint: Require Guile 3.0., guix-commits, 2021/06/01
- 02/07: ui, lint: Simplify exception handling in Guile 3 style., guix-commits, 2021/06/01
- 04/07: services: cuirass: Create the profile and GC root directory.,
guix-commits <=
- 07/07: gnu: rtl8821ce-linux-module: Update to 0.0.0-3.897e7c4., guix-commits, 2021/06/01
- 06/07: machine: ssh: Gracefully handle failure of the effectful bits., guix-commits, 2021/06/01
- 03/07: nls: Translate (guix diagnostics)., guix-commits, 2021/06/01
- 05/07: services: cuirass: Do not export record type descriptors., guix-commits, 2021/06/01