5d6eedd
From fb36bef4e4884a62b70cd98f7d2d52abf8091106 Mon Sep 17 00:00:00 2001
03e93e2
From: Martin Pitt <martin.pitt@ubuntu.com>
03e93e2
Date: Thu, 10 Nov 2016 05:33:13 +0100
03e93e2
Subject: [PATCH] core: don't use the unified hierarchy for the systemd cgroup
03e93e2
 yet (#4628)
03e93e2
03e93e2
Too many things don't get along with the unified hierarchy yet:
03e93e2
03e93e2
 * https://github.com/opencontainers/runc/issues/1175
03e93e2
 * https://github.com/docker/docker/issues/28109
03e93e2
 * https://github.com/lxc/lxc/issues/1280
03e93e2
03e93e2
So revert the default to the legacy hierarchy for now. Developers of the above
03e93e2
software can opt into the unified hierarchy with
03e93e2
"systemd.legacy_systemd_cgroup_controller=0".
03e93e2
(cherry picked from commit 843d5baf6aad6c53fc00ea8d95d83209a4f92de1)
03e93e2
---
03e93e2
 src/basic/cgroup-util.c | 4 ++--
03e93e2
 1 file changed, 2 insertions(+), 2 deletions(-)
03e93e2
03e93e2
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c
03e93e2
index cede835920..134e6e3664 100644
03e93e2
--- a/src/basic/cgroup-util.c
03e93e2
+++ b/src/basic/cgroup-util.c
03e93e2
@@ -2423,10 +2423,10 @@ bool cg_is_unified_systemd_controller_wanted(void) {
03e93e2
 
03e93e2
                 r = get_proc_cmdline_key("systemd.legacy_systemd_cgroup_controller=", &value);
03e93e2
                 if (r < 0)
03e93e2
-                        return true;
03e93e2
+                        return false;
03e93e2
 
03e93e2
                 if (r == 0)
03e93e2
-                        wanted = true;
03e93e2
+                        wanted = false;
03e93e2
                 else
03e93e2
                         wanted = parse_boolean(value) <= 0;
03e93e2
         }