Commit 815049bc authored by Pavel Emelyanov's avatar Pavel Emelyanov

rst: Fix message about inability to restore pid 1 outside pidns

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d9df71dc
...@@ -1161,8 +1161,10 @@ static int restore_root_task(struct pstree_item *init, struct cr_options *opts) ...@@ -1161,8 +1161,10 @@ static int restore_root_task(struct pstree_item *init, struct cr_options *opts)
if (init->pid.virt == INIT_PID) { if (init->pid.virt == INIT_PID) {
if (!(opts->namespaces_flags & CLONE_NEWPID)) { if (!(opts->namespaces_flags & CLONE_NEWPID)) {
pr_err("This process tree can be restored in a new pid namespace.\n"); pr_err("This process tree can only be restored "
pr_err("crtools should be re-executed with --namespace pid\n"); "in a new pid namespace.\n"
"crtools should be re-executed with the "
"\"--namespace pid\" option.\n");
return -1; return -1;
} }
} else if (opts->namespaces_flags & CLONE_NEWPID) { } else if (opts->namespaces_flags & CLONE_NEWPID) {
......
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