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

Pavel Emelyanov xemul at parallels.com
Thu Mar 14 11:35:40 EDT 2013


On 03/06/2013 12:12 PM, Andrey Vagin wrote:
> 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
>  
> 


Applied


More information about the CRIU mailing list