Commit 41aa981d authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

mount: don't mark mounts as private twice

We do the same action twice. It's typo.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 377205c1
......@@ -1496,11 +1496,6 @@ static int cr_pivot_root(char *root)
return -1;
}
if (mount("none", put_root, "none", MS_REC|MS_PRIVATE, NULL)) {
pr_perror("Can't remount root with MS_PRIVATE");
return -1;
}
if (umount2(put_root, MNT_DETACH)) {
pr_perror("Can't umount %s", put_root);
return -1;
......
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