summaryrefslogtreecommitdiff
path: root/gnu/system/file-systems.scm
diff options
context:
space:
mode:
authorAndy Wingo <wingo@igalia.com>2016-03-02 20:29:47 +0100
committerAndy Wingo <wingo@igalia.com>2016-03-07 21:10:00 +0100
commita7e50a2a03a7df90ca2eace6f2e990e0464b86f3 (patch)
tree5bdce2dc2b5e9fad49b8f1f2e9d93c346ae912fd /gnu/system/file-systems.scm
parent0e2f2aebedef8b90750cc6aec9d5840def22e921 (diff)
downloadpatches-a7e50a2a03a7df90ca2eace6f2e990e0464b86f3.tar
patches-a7e50a2a03a7df90ca2eace6f2e990e0464b86f3.tar.gz
gnu: system: Add elogind cgroup mount.
* gnu/system/file-systems.scm (%elogind-file-systems): Add elogind cgroup mount.
Diffstat (limited to 'gnu/system/file-systems.scm')
-rw-r--r--gnu/system/file-systems.scm13
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/system/file-systems.scm b/gnu/system/file-systems.scm
index d93044ce04..d0726d2b61 100644
--- a/gnu/system/file-systems.scm
+++ b/gnu/system/file-systems.scm
@@ -232,7 +232,18 @@ initrd code."
(check? #f)
(flags '(no-suid no-dev no-exec))
(options "mode=0755")
- (create-mount-point? #t))))
+ (create-mount-point? #t))
+ ;; Elogind uses cgroups to organize processes, allowing it to map PIDs
+ ;; to sessions. Elogind's cgroup hierarchy isn't associated with any
+ ;; resource controller ("subsystem").
+ (file-system
+ (device "cgroup")
+ (mount-point "/sys/fs/cgroup/elogind")
+ (type "cgroup")
+ (check? #f)
+ (options "none,name=elogind")
+ (create-mount-point? #t)
+ (dependencies (list (car %control-groups))))))
(define %base-file-systems
;; List of basic file systems to be mounted. Note that /proc and /sys are