[CRIU] [PATCH] app-emu/lxc: create /var/run/netns/

Andrey Vagin avagin at openvz.org
Wed Mar 6 03:12:58 EST 2013


In Fedora /var/run is on tmpfs, so all directories should be
recreated each times.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/app-emu/lxc/run.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/app-emu/lxc/run.sh b/test/app-emu/lxc/run.sh
index 2cb4656..ddaefdc 100755
--- a/test/app-emu/lxc/run.sh
+++ b/test/app-emu/lxc/run.sh
@@ -27,6 +27,7 @@ pid=$2
 echo "The CT's \"init\" process has PID of $pid"
 kill -0 $pid || exit 1
 
+mkdir -p /var/run/netns/
 ln -sf /proc/$pid/ns/net /var/run/netns/$name
 $CR_IP_TOOL netns exec $name ip a || exit 1
 
-- 
1.7.11.7



More information about the CRIU mailing list