Skip to content

Commit

Permalink
Fix lxc.cgroup2.<controller> on cgroup2-only systems
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sparmann <theseven@gmx.net>
  • Loading branch information
TheSeven authored and Christian Brauner committed Apr 10, 2019
1 parent 6e935c2 commit a2a5f38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lxc/cgroups/cgfsng.c
Original file line number Diff line number Diff line change
Expand Up @@ -2551,6 +2551,7 @@ static int cg_unified_init(struct cgroup_ops *ops)
add_hierarchy(&ops->hierarchies, delegatable, mountpoint, base_cgroup, CGROUP2_SUPER_MAGIC);

ops->cgroup_layout = CGROUP_LAYOUT_UNIFIED;
ops->unified = new;
return CGROUP2_SUPER_MAGIC;
}

Expand Down

0 comments on commit a2a5f38

Please sign in to comment.