--- util-vserver-0.30.216-pre2864/src/vcontext.c 2011-03-20 22:58:29.000000000 +0100 +++ vcontext.c 2011-03-20 22:58:07.000000000 +0100 @@ -290,7 +290,7 @@ perror(ENSC_WRAPPERS_PREFIX "unshare(NEWNS)"); return wrapper_exit_code; } - if (mkdir("./.oldroot", 0700) == -1) { + if (mkdir("./var/run/.oldroot", 0700) == -1) { if (errno == EEXIST) existed = true; else { @@ -298,15 +298,15 @@ return wrapper_exit_code; } } - if (pivot_root(".", "./.oldroot") == -1) { + if (pivot_root(".", "./var/run/.oldroot") == -1) { perror(ENSC_WRAPPERS_PREFIX "pivot_root()"); return wrapper_exit_code; } - if (umount2("/.oldroot", MNT_DETACH) == -1) { + if (umount2("/var/run/.oldroot", MNT_DETACH) == -1) { perror(ENSC_WRAPPERS_PREFIX "umount2()"); return wrapper_exit_code; } - if (!existed && rmdir("/.oldroot") == -1) { + if (!existed && rmdir("/var/run/.oldroot") == -1) { perror(ENSC_WRAPPERS_PREFIX "rmdir()"); return wrapper_exit_code; }