From 4b6161dc82afee61110d90988e576bf27caaf66d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 16:04:16 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hosts/vidhar') 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): with open('/proc/self/setgroups', 'w') as setgroups: setgroups.write('deny') with open('/proc/self/uid_map', 'w') as uid_map: - uid_map.write(f'0 {uid} 4294967295') + uid_map.write(f'0 {uid} 1') with open('/proc/self/gid_map', 'w') as gid_map: - gid_map.write(f'0 {gid} 4294967295') + gid_map.write(f'0 {gid} 1') subprocess.run(['mount', '--make-rprivate', '/'], check=True) chroot = pathlib.Path(tmpdir) / 'chroot' upper = pathlib.Path(tmpdir) / 'upper' -- cgit v1.2.3