Commit c7684913 authored by Andrei Vagin's avatar Andrei Vagin

zdtm: mount tmpfs into /run in a test root

iptables creates /run/xtables.lock file and
we want to have it per-test.

(00.332159)      1: 	Running iptables-restore -w for iptables-restore -w
Fatal: can't open lock file /run/xtables.lock: Permission denied
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 2af17257
......@@ -98,6 +98,11 @@ static int prepare_mntns(void)
return -1;
}
if (mount("zdtm_run", "/run", "tmpfs", 0, NULL)) {
fprintf(stderr, "Unable to mount /run: %m\n");
return -1;
}
if (umount2("./old", MNT_DETACH)) {
fprintf(stderr, "umount(./old) failed: %m\n");
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