diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 16:04:16 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 16:04:16 +0100 |
commit | 4b6161dc82afee61110d90988e576bf27caaf66d (patch) | |
tree | 3e6c1b48b7747fdac71fafb9015366e3421f66c8 /hosts/vidhar | |
parent | 8d439cb16fde604a8fb8d7b12f6c9ffd137baf2c (diff) | |
download | nixos-4b6161dc82afee61110d90988e576bf27caaf66d.tar nixos-4b6161dc82afee61110d90988e576bf27caaf66d.tar.gz nixos-4b6161dc82afee61110d90988e576bf27caaf66d.tar.bz2 nixos-4b6161dc82afee61110d90988e576bf27caaf66d.tar.xz nixos-4b6161dc82afee61110d90988e576bf27caaf66d.zip |
vidhar: ...
Diffstat (limited to 'hosts/vidhar')
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 227b7d8a..f5fc9cd9 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py | |||
@@ -105,9 +105,9 @@ def copy_archive(src_repo_path, dst_repo_path, entry): | |||
105 | with open('/proc/self/setgroups', 'w') as setgroups: | 105 | with open('/proc/self/setgroups', 'w') as setgroups: |
106 | setgroups.write('deny') | 106 | setgroups.write('deny') |
107 | with open('/proc/self/uid_map', 'w') as uid_map: | 107 | with open('/proc/self/uid_map', 'w') as uid_map: |
108 | uid_map.write(f'0 {uid} 4294967295') | 108 | uid_map.write(f'0 {uid} 1') |
109 | with open('/proc/self/gid_map', 'w') as gid_map: | 109 | with open('/proc/self/gid_map', 'w') as gid_map: |
110 | gid_map.write(f'0 {gid} 4294967295') | 110 | gid_map.write(f'0 {gid} 1') |
111 | subprocess.run(['mount', '--make-rprivate', '/'], check=True) | 111 | subprocess.run(['mount', '--make-rprivate', '/'], check=True) |
112 | chroot = pathlib.Path(tmpdir) / 'chroot' | 112 | chroot = pathlib.Path(tmpdir) / 'chroot' |
113 | upper = pathlib.Path(tmpdir) / 'upper' | 113 | upper = pathlib.Path(tmpdir) / 'upper' |