]> git.ipfire.org Git - thirdparty/lxc.git/commit
c/r: use --restore-sibling option in CRIU
authorTycho Andersen <tycho.andersen@canonical.com>
Sat, 13 Sep 2014 01:05:54 +0000 (20:05 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 19 Sep 2014 21:06:37 +0000 (17:06 -0400)
commit74bcefea48f73569ec6e91adb410e84efe46d3b8
tree7426649c45a2ebcf6d734cc9f17946c46a48f30b
parent22038de5f2a4db53f9ce3bc72625b6763a0b3fc6
c/r: use --restore-sibling option in CRIU

After looking through some logs, it is a little cleaner to do it as
below, instead of what I originally posted.

Tycho

In order for LXC to be the parent of the restored process, CRIU needs to
restore init as its sibling, not as its child. This was previously accomplished
essentially via luck :). CRIU now has a --restore-sibling option which forces
this behavior that LXC expects. See more discussion in this thread:
http://lists.openvz.org/pipermail/criu/2014-September/thread.html#16330

v2: don't pass --restore-sibling to dump. This is mostly cosmetic, but will
    look less confusing in the logs if people ever look at them.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c