Permalink
Please sign in to comment.
Browse files
Ignore trailing /init.scope in init cgroups
The lxc monitor does not store the container's cgroups, rather it recalculates them whenever needed. Systemd moves itself into a /init.scope cgroup for the systemd controller. It might be worth changing that (by storing all cgroup info in the lxc_handler), but for now go the hacky route and chop off any trailing /init.scope. I definately thinkg we want to switch to storing as that will be more bullet-proof, but for now we need a quick backportable fix for systemd 226 guests. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
- Loading branch information...
Showing
with
18 additions
and 0 deletions.
- +1 −0 src/lxc/cgfs.c
- +1 −0 src/lxc/cgmanager.c
- +14 −0 src/lxc/cgroup.c
- +2 −0 src/lxc/cgroup.h
0 comments on commit
f348e47