From c18c6b63b8b6ba3e53734daa958b7e0182fb47c6 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Thu, 29 Aug 2019 14:05:17 +0200 Subject: [PATCH] cgroups: initialize cgroup root directory - encore Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgfsng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2