diff options
| author | Andy Wingo <wingo@igalia.com> | 2016-03-02 20:29:47 +0100 |
|---|---|---|
| committer | Andy Wingo <wingo@igalia.com> | 2016-03-07 21:10:00 +0100 |
| commit | a7e50a2a03a7df90ca2eace6f2e990e0464b86f3 (patch) | |
| tree | 5bdce2dc2b5e9fad49b8f1f2e9d93c346ae912fd /gnu/system | |
| parent | 0e2f2aebedef8b90750cc6aec9d5840def22e921 (diff) | |
gnu: system: Add elogind cgroup mount.
* gnu/system/file-systems.scm (%elogind-file-systems): Add elogind
cgroup mount.
Diffstat (limited to 'gnu/system')
| -rw-r--r-- | gnu/system/file-systems.scm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/system/file-systems.scm b/gnu/system/file-systems.scm index d93044ce046..d0726d2b614 100644 --- a/gnu/system/file-systems.scm +++ b/gnu/system/file-systems.scm | |||
| @@ -232,7 +232,18 @@ initrd code." | |||
| 232 | (check? #f) | 232 | (check? #f) |
| 233 | (flags '(no-suid no-dev no-exec)) | 233 | (flags '(no-suid no-dev no-exec)) |
| 234 | (options "mode=0755") | 234 | (options "mode=0755") |
| 235 | (create-mount-point? #t)))) | 235 | (create-mount-point? #t)) |
| 236 | ;; Elogind uses cgroups to organize processes, allowing it to map PIDs | ||
| 237 | ;; to sessions. Elogind's cgroup hierarchy isn't associated with any | ||
| 238 | ;; resource controller ("subsystem"). | ||
| 239 | (file-system | ||
| 240 | (device "cgroup") | ||
| 241 | (mount-point "/sys/fs/cgroup/elogind") | ||
| 242 | (type "cgroup") | ||
| 243 | (check? #f) | ||
| 244 | (options "none,name=elogind") | ||
| 245 | (create-mount-point? #t) | ||
| 246 | (dependencies (list (car %control-groups)))))) | ||
| 236 | 247 | ||
| 237 | (define %base-file-systems | 248 | (define %base-file-systems |
| 238 | ;; List of basic file systems to be mounted. Note that /proc and /sys are | 249 | ;; List of basic file systems to be mounted. Note that /proc and /sys are |
