From 3e0632e7fb936c86dd0f67e63ab3c4fb9b036d52 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 12:57:27 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 1 + 1 file changed, 1 insertion(+) (limited to 'hosts/vidhar/borg/copy.py') diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 6cfab881..0b863094 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py @@ -84,6 +84,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry): child = os.fork() if child == 0: # print('unshare/chroot', file=stderr) + unshare.unshare(unshare.CLONE_NEWUSER) unshare.unshare(unshare.CLONE_NEWNS) subprocess.run(['mount', '--make-rprivate', '/'], check=True) chroot = pathlib.Path(tmpdir) / 'chroot' -- cgit v1.2.3