diff options
Diffstat (limited to 'hosts/vidhar')
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 1 |
1 files changed, 1 insertions, 0 deletions
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): | |||
84 | child = os.fork() | 84 | child = os.fork() |
85 | if child == 0: | 85 | if child == 0: |
86 | # print('unshare/chroot', file=stderr) | 86 | # print('unshare/chroot', file=stderr) |
87 | unshare.unshare(unshare.CLONE_NEWUSER) | ||
87 | unshare.unshare(unshare.CLONE_NEWNS) | 88 | unshare.unshare(unshare.CLONE_NEWNS) |
88 | subprocess.run(['mount', '--make-rprivate', '/'], check=True) | 89 | subprocess.run(['mount', '--make-rprivate', '/'], check=True) |
89 | chroot = pathlib.Path(tmpdir) / 'chroot' | 90 | chroot = pathlib.Path(tmpdir) / 'chroot' |