]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup: Imply systemd.unified_cgroup_hierarchy=1 on cgroup_no_v1=all
authorChris Down <chris@chrisdown.name>
Wed, 19 Dec 2018 03:33:53 +0000 (03:33 +0000)
committerChris Down <chris@chrisdown.name>
Fri, 21 Dec 2018 13:29:27 +0000 (13:29 +0000)
commit5f086dc7db539974535ad093abdd32d47fbb035d
tree01bdb5a1c549bfdf5c0489bfc0483dcb7feffdcf
parent2141bedb39a5abe4564ba8df44a78f4b3668b830
cgroup: Imply systemd.unified_cgroup_hierarchy=1 on cgroup_no_v1=all

cgroup_no_v1=all doesn't make a whole lot of sense with legacy hierarchy
(where we use v1 hierarchy for everything), or hybrid hierarchy (where
we still use v1 hierarchy for resource control).

Right now we have to tell people to add both cgroup_no_v1=all and
systemd.unified_cgroup_hierarchy=1 to get the desired behaviour,
however in reality it's hard to imagine any situation where someone
passes cgroup_no_v1=all but *doesn't* want to use the unified cgroup
hierarchy.

Make it so that cgroup_no_v1=all produces intuitive behaviour in systemd
by default, although it can still be disabled by passing
systemd.unified_cgroup_hierarchy=0 explicitly.
src/basic/cgroup-util.c
src/test/test-cgroup-util.c