]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: figure out cgroup mode *after* mounting image
authorLennart Poettering <lennart@poettering.net>
Mon, 27 Nov 2017 19:49:35 +0000 (20:49 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Dec 2017 12:49:12 +0000 (13:49 +0100)
commit8199d554c1d05acae2621e28e69b8efd819f789d
tree69b2faa8cb1333d7d3d6b71cf10ad2696d9d8e97
parent28faeda47f75dd9f34e36c48237cb376a1dd889c
nspawn: figure out cgroup mode *after* mounting image

If we operate on a disk image (i.e. --image=) then it's pointless to
look into the mount directory before it is actually mounted to see which
systemd version is running inside...

Unfortunately we only mount the disk image in the child process, but the
parent needs to know the cgroup mode, hence add some IPC for this
purpose and communicate the cgroup mode determined from the image back
to the parent.
src/nspawn/nspawn.c