diff options
author | Tejun Heo <htejun@fb.com> | 2016-11-23 12:27:32 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-20 12:28:44 -0500 |
commit | f08e9287200772c9a201d9f988dd78ffe2fc7ea4 (patch) | |
tree | 02419720dbdfa49afac29335ce57ab2461914c3c /src/fstab-generator | |
parent | 2977724b09eb997fc84a80517447b5d4a70770c7 (diff) |
core: keep supporting cgroup hybrid layout from v232 for live upgrades
v232's cgroup hybrid mode mounted v2 on /sys/fs/cgroup/systemd, which
unfortunately broke other tools which expect v1 there. From v233 on, hybrid
mode instead mounts and uses v2 on /sys/fs/cgroup/unified and keeps
/sys/fs/cgroup/systemd on v1 for compatibility with external tools. However,
to keep systemd live upgrades working, v233+ should be able to recognize v232
layout and keep using it.
This patch adds v232 hybrid mode support. If v232 layout is detected,
cg_unified(SYSTEMD_CGRouP_CONTROLLER) keeps returning %true but
cg_hybrid_unified() returns %false. This keeps process management on cgroup v2
but turns off the parallel layout.
Diffstat (limited to 'src/fstab-generator')
0 files changed, 0 insertions, 0 deletions