]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: use mixed cgroup hierarchy only when container has new systemd
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 8 Oct 2016 06:18:26 +0000 (02:18 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 8 Oct 2016 18:48:41 +0000 (14:48 -0400)
commit0fd9563fdeff88458f1a533ac50445abc89e56d8
tree041ec4af9607926e804b24fda901707932899957
parent27e29a1e4390415e2d5b709f3d8c2d9481b50987
nspawn: use mixed cgroup hierarchy only when container has new systemd

systemd-soon-to-be-released-232 is able to deal with the mixed hierarchy.
So make an educated guess, and use the mixed hierarchy in that case.

Tested by running the host with mixed hierarchy (i.e. simply using a recent
kernel with systemd from git), and booting first a container with older systemd,
and then one with a newer systemd.

Fixes #4008.
src/nspawn/nspawn.c