[CRIU] [PATCH 1/2] zdtm: create /run in a test root

Andrei Vagin avagin at virtuozzo.com
Tue May 15 03:36:04 MSK 2018


Applied
On Wed, May 09, 2018 at 11:53:17PM +0300, Andrei Vagin wrote:
> iptables 1.6.2 fails without /run, because it tries to create
> the /run/xtables.lock file
> 
> Test output: ================================
> Fatal: can't open lock file /run/xtables.lock: No such file or directory
> 23:29:06.098:     4: ERR: netns-nf.c:21: Can't set input rule (errno = 2 (No such file or directory))
> 23:29:06.098:     3: ERR: test.c:315: Test exited unexpectedly with code 255
> 
> Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
> ---
>  test/zdtm.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/test/zdtm.py b/test/zdtm.py
> index 353142880..eb9914530 100755
> --- a/test/zdtm.py
> +++ b/test/zdtm.py
> @@ -163,7 +163,7 @@ class host_flavor:
>  
>  
>  class ns_flavor:
> -	__root_dirs = ["/bin", "/sbin", "/etc", "/lib", "/lib64", "/dev", "/dev/pts", "/dev/net", "/tmp", "/usr", "/proc"]
> +	__root_dirs = ["/bin", "/sbin", "/etc", "/lib", "/lib64", "/dev", "/dev/pts", "/dev/net", "/tmp", "/usr", "/proc", "/run"]
>  
>  	def __init__(self, opts):
>  		self.name = "ns"
> -- 
> 2.14.3
> 


More information about the CRIU mailing list