]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: restart the whole systemd-nspawn@.service unit on container reboot (#4613)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 14 Nov 2016 10:49:49 +0000 (05:49 -0500)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Nov 2016 10:49:49 +0000 (11:49 +0100)
commit2a49b6120f0ba3e07cef964d8a4b321bd49655c9
treeee206112dc430ee4537f58203475633e61bcb1cb
parent45d34fa7fb9f587f09e8cca882966050b4cbb5be
nspawn: restart the whole systemd-nspawn@.service unit on container reboot (#4613)

Since 133 is now used in a few places, add a #define for it.
Also make the status message a bit informative.

Another issue introduced in b006762. The logic was borked, we were supposed
to return 0 to break the loop, and 133 to restart the container, not the other
way around.

But this doesn't seem to work, reboot fails with:
Nov 08 00:41:32 laptop systemd-nspawn[26564]: Failed to register machine: Machine 'fedora-rawhide' already exists
So actually the version before this patch worked better, since 133 > 0 and we'd
at least loop internally.
src/nspawn/nspawn.c