From f9911bdc3ff24999b5b961f299f4a3b4461c381c Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Wed, 2 Mar 2016 20:29:47 +0100 Subject: [PATCH 1/2] gnu: system: Add elogind cgroup mount. * gnu/system/file-systems.scm (%elogind-file-systems): Add elogind cgroup mount. --- gnu/system/file-systems.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/system/file-systems.scm b/gnu/system/file-systems.scm index d93044c..0891ed2 100644 --- a/gnu/system/file-systems.scm +++ b/gnu/system/file-systems.scm @@ -232,7 +232,16 @@ 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, not to control them. + (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 -- 2.6.3