Commit 7dc741f4 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

app-emu/lxc: create /var/run/netns/

In Fedora /var/run is on tmpfs, so all directories should be
recreated each times.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d36480ed
......@@ -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
......
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