]> git.ipfire.org Git - thirdparty/lxc.git/commit
Ignore trailing /init.scope in init cgroups
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 15 Oct 2015 18:56:17 +0000 (18:56 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 29 Oct 2015 21:56:27 +0000 (17:56 -0400)
commitf348e47c93568b4f0c371cf5df1c98d4e816a86c
treeab5031e971166ca0790fb7777bea8cf803ad9a8d
parent27c278a76931bfc4660caa85d1942ca91c86e0bf
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>
src/lxc/cgfs.c
src/lxc/cgmanager.c
src/lxc/cgroup.c
src/lxc/cgroup.h