From e0038544b9d990900d423c002e75b9da80481d41 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 16:15:08 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 1 + 1 file changed, 1 insertion(+) (limited to 'hosts/vidhar/borg') diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 8cfcbd56..fb0414d5 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py @@ -116,6 +116,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry): path.mkdir() print(f'euid={os.getuid()}', file=stderr) subprocess.run(['stat', '/', upper, work, chroot], check=True) + subprocess.run(['mount', '-t', 'tmpfs', 'tmpfs', chroot], check=True) subprocess.run(['mount', '-t', 'overlay', 'overlay', '-o', f'lowerdir=/,upperdir={upper},workdir={work}', chroot], check=True) bindMounts = ['nix', 'run', 'proc', 'dev', 'sys', pathlib.Path(os.path.expanduser('~')).relative_to('/')] if not ":" in src_repo_path: -- cgit v1.2.3