diff --git a/Documentation/criu-ns.txt b/Documentation/criu-ns.txt index 877f5b1fd..c6594a9bc 100644 --- a/Documentation/criu-ns.txt +++ b/Documentation/criu-ns.txt @@ -14,6 +14,8 @@ SYNOPSIS *criu-ns* 'restore' [] +*criu-ns* 'check' [] + DESCRIPTION ----------- The *criu-ns* command executes 'criu' in a new PID and mount namespace. diff --git a/scripts/criu-ns b/scripts/criu-ns index fea9b1315..a97c0002b 100755 --- a/scripts/criu-ns +++ b/scripts/criu-ns @@ -214,6 +214,7 @@ Usage: dump checkpoint a process/tree identified by pid pre-dump pre-dump task(s) minimizing their frozen time restore restore a process/tree + check checks whether the kernel support is up-to-date """.format(sys.argv[0])) @@ -227,6 +228,8 @@ if __name__ == "__main__": res = wrap_restore() elif action in ['dump', 'pre-dump']: res = wrap_dump() + elif action == 'check': + run_criu(sys.argv[1:]) else: print('Unsupported action {} for criu-ns'.format(action)) res = -1