From: Michael Sparmann <750643+TheSeven@users.noreply.github.com> Date: Wed, 6 Mar 2019 23:06:11 +0000 (+0100) Subject: Fix lxc.cgroup2. on cgroup2-only systems X-Git-Tag: lxc-3.2.0~119^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=908e0ee512d185da2c16ece0b829d34a985d3b15;p=thirdparty%2Flxc.git Fix lxc.cgroup2. on cgroup2-only systems Signed-off-by: Michael Sparmann --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index c8be81b93..e40b8079a 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -2684,6 +2684,7 @@ static int cg_unified_init(struct cgroup_ops *ops, bool relative, cg_unified_delegate(&new->cgroup2_chown); ops->cgroup_layout = CGROUP_LAYOUT_UNIFIED; + ops->unified = new; return CGROUP2_SUPER_MAGIC; }