summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-17 13:29:17 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-17 13:29:17 +0100
commitb4e74d1ead7d0a7e5d5e502a58d70029673e2a77 (patch)
tree2883b4706c879b12ec22d73bc301c9a5cb627641 /hosts/vidhar/borg
parentca4b82507f3624ec0a0af395a58d7b4345f16ec5 (diff)
downloadnixos-b4e74d1ead7d0a7e5d5e502a58d70029673e2a77.tar
nixos-b4e74d1ead7d0a7e5d5e502a58d70029673e2a77.tar.gz
nixos-b4e74d1ead7d0a7e5d5e502a58d70029673e2a77.tar.bz2
nixos-b4e74d1ead7d0a7e5d5e502a58d70029673e2a77.tar.xz
nixos-b4e74d1ead7d0a7e5d5e502a58d70029673e2a77.zip
vidhar: ...
Diffstat (limited to 'hosts/vidhar/borg')
-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'