Commit 36d2096c by Tycho Andersen

c/r: don't pass --ext-mount-map flag when console=none

We don't pass anything on the restore side since we didn't save anything, but the restore side will expect something if we pass this. Instead, let's not pass anything. Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
parent ecd852f3
...@@ -259,9 +259,10 @@ static void exec_criu(struct criu_opts *opts) ...@@ -259,9 +259,10 @@ static void exec_criu(struct criu_opts *opts)
DECLARE_ARG("--freeze-cgroup"); DECLARE_ARG("--freeze-cgroup");
DECLARE_ARG(log); DECLARE_ARG(log);
DECLARE_ARG("--ext-mount-map");
DECLARE_ARG("/dev/console:console");
if (opts->tty_id[0]) { if (opts->tty_id[0]) {
DECLARE_ARG("--ext-mount-map");
DECLARE_ARG("/dev/console:console");
DECLARE_ARG("--external"); DECLARE_ARG("--external");
DECLARE_ARG(opts->tty_id); DECLARE_ARG(opts->tty_id);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment