[systemd-devel] machined: updating the PID of a created machine

Cedric Bosdonnat cbosdonnat at suse.com
Thu Jun 12 08:20:58 PDT 2014


Hi all,

In libvirt lxc driver's use of machined, the CreateMachine call is sent
out before the init process is actually started. This gives libvirt lxc
driver some time to setup the container before starting it.

However, the leader PID sent isn't the proper one and functions like
machinectl login are failing. Would it be possible to add an API to
update the Leader PID of a machine after its creation?

Our other solution would be to start the init process and send it to
sleep to be able to continue setting up the container... but that means
costly (and maybe fragile) refactoring.

Regards,

--
Cedric Bosdonnat



More information about the systemd-devel mailing list