summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhosts/vidhar/borg/copy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py
index 7a83100a..3ec520b5 100755
--- a/hosts/vidhar/borg/copy.py
+++ b/hosts/vidhar/borg/copy.py
@@ -88,7 +88,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry):
88 # print('unshare/chroot', file=stderr) 88 # print('unshare/chroot', file=stderr)
89 unshare.unshare(unshare.CLONE_NEWUSER) 89 unshare.unshare(unshare.CLONE_NEWUSER)
90 unshare.unshare(unshare.CLONE_NEWNS) 90 unshare.unshare(unshare.CLONE_NEWNS)
91 pyprctl.cap_ambient_raise(pyprctl.SYS_ADMIN) 91 pyprctl.cap_ambient_raise(pyprctl.Cap.SYS_ADMIN)
92 subprocess.run(['mount', '--make-rprivate', '/'], check=True) 92 subprocess.run(['mount', '--make-rprivate', '/'], check=True)
93 chroot = pathlib.Path(tmpdir) / 'chroot' 93 chroot = pathlib.Path(tmpdir) / 'chroot'
94 upper = pathlib.Path(tmpdir) / 'upper' 94 upper = pathlib.Path(tmpdir) / 'upper'