From: Christian Brauner Date: Thu, 29 Aug 2019 12:05:17 +0000 (+0200) Subject: cgroups: initialize cgroup root directory - encore X-Git-Tag: lxc-4.0.0~122^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c18c6b63b8b6ba3e53734daa958b7e0182fb47c6;p=thirdparty%2Flxc.git cgroups: initialize cgroup root directory - encore Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 1300e24a3..a5d6c0189 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1795,8 +1795,8 @@ __cgfsng_ops static bool cgfsng_mount(struct cgroup_ops *ops, else if (type == LXC_AUTO_CGROUP_FULL_NOSPEC) type = LXC_AUTO_CGROUP_FULL_MIXED; + cgroup_root = must_make_path(root, "/sys/fs/cgroup", NULL); if (ops->cgroup_layout == CGROUP_LAYOUT_UNIFIED) { - cgroup_root = must_make_path(root, "/sys/fs/cgroup", NULL); if (has_cgns && wants_force_mount) { /* If cgroup namespaces are supported but the container * will not have CAP_SYS_ADMIN after it has started we