diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 13:29:17 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 13:29:17 +0100 |
commit | b4e74d1ead7d0a7e5d5e502a58d70029673e2a77 (patch) | |
tree | 2883b4706c879b12ec22d73bc301c9a5cb627641 /hosts | |
parent | ca4b82507f3624ec0a0af395a58d7b4345f16ec5 (diff) | |
download | nixos-b4e74d1ead7d0a7e5d5e502a58d70029673e2a77.tar nixos-b4e74d1ead7d0a7e5d5e502a58d70029673e2a77.tar.gz nixos-b4e74d1ead7d0a7e5d5e502a58d70029673e2a77.tar.bz2 nixos-b4e74d1ead7d0a7e5d5e502a58d70029673e2a77.tar.xz nixos-b4e74d1ead7d0a7e5d5e502a58d70029673e2a77.zip |
vidhar: ...
Diffstat (limited to 'hosts')
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 2 |
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' |