systemd: use recommended default hybrid cgroups hierarchy

This commit is contained in:
Lukas Rusak 2017-03-18 10:09:24 -07:00
parent c6ece5e7fb
commit dc513d78a8
No known key found for this signature in database
GPG Key ID: 8C310C807E7393A3
2 changed files with 2 additions and 37 deletions

View File

@ -103,7 +103,8 @@ PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_malloc_0_nonnull=yes \
--with-dbussessionservicedir=/usr/share/dbus-1/services \
--with-dbussystemservicedir=/usr/share/dbus-1/system-services \
--with-rootprefix=/usr \
--with-rootlibdir=/usr/lib"
--with-rootlibdir=/usr/lib \
--with-default-hierarchy=hybrid"
pre_build_target() {
# broken autoreconf

View File

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