]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Fix lxc.cgroup2.<controller> on cgroup2-only systems
authorMichael Sparmann <750643+TheSeven@users.noreply.github.com>
Wed, 6 Mar 2019 23:06:11 +0000 (00:06 +0100)
committerMichael Sparmann <michael@sparmanns.de>
Wed, 6 Mar 2019 23:13:26 +0000 (00:13 +0100)
Signed-off-by: Michael Sparmann <theseven@gmx.net>
src/lxc/cgroups/cgfsng.c

index c8be81b9329f5f000ae4d92c36d401879918775f..e40b8079a18ede6c4ce0ecc50b9c7c5218b3fa9a 100644 (file)
@@ -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;
 }