chiark / gitweb /
Fix cgroup directory mounting:
authorSven Eden <yamakuzure@gmx.net>
Wed, 20 Jun 2018 17:13:05 +0000 (19:13 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 29 Jun 2018 05:12:51 +0000 (07:12 +0200)
commitf0a7917bc8ea0ba859e10093517e33f2bad78f10
tree68dce7b70d5577a3f533a6119b8775701279055c
parent4f703de664738f58bc92834f2cd75234254eb07f
Fix cgroup directory mounting:

A little misunderstanding has been fixed, and elogind now mounts the following
directories, if (and only if) it has to act as its own cgroups controller.

  * -Ddefault-hierarchy=legacy  : /sys/fs/cgroup         as tmpfs
                                  /sys/fs/cgroup/elogind as cgroup

  * -Ddefault-hierarchy=hybrid  : The same as with 'legacy', plus
                                  /sys/fs/cgroup/unified as cgroup2

  * -Ddefault-hierarchy=unified : /sys/fs/cgroup2        as cgroup2
meson_options.txt
src/basic/cgroup-util.c
src/core/mount-setup.c