mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-04 18:14:05 +00:00
cgroups: initialize cgroup root directory - encore
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
81468ea7c0
commit
c18c6b63b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user