]> git.ipfire.org Git - thirdparty/lxc.git/commit
c/r: drop lxc.console=none config requirement 893/head
authorTycho Andersen <tycho.andersen@canonical.com>
Sat, 12 Mar 2016 01:10:40 +0000 (18:10 -0700)
committerTycho Andersen <tycho.andersen@canonical.com>
Tue, 15 Mar 2016 15:31:15 +0000 (09:31 -0600)
commit4b54788e85a4e2f423133354f8141ed02f795d71
treea55e24905611b8fb0d832bcb64a0f36d58af3337
parent73d467522b29983a4c0e1d806a460432870ac5ff
c/r: drop lxc.console=none config requirement

There are a few things going on in this patch.

1. /dev/console is an external mount since it is bind mounted from the
   host. However, we don't want to use criu's --ext-mount-map auto handling
   here, because that will bind mount exactly the same path from the host
   on restore, but if the pts device is different on the target host, we'll
   bind mount the wrong one, which is obviously wrong.

2. We need to tell CRIU how to restore the TTY. Since we declare the tty as
   --external, we need to provide it via --inherit-fd (even though we've
   already fixed up the environment).

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
src/lxc/criu.c