From 09460426f5d24e62afd4fdad0ba9c2588f012f97 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 17:48:02 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index c839194c..578394cc 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py @@ -112,6 +112,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry): bindMounts.append(pathlib.Path(os.environ['SSH_AUTH_SOCK']).parent.relative_to('/')) for bindMount in bindMounts: (chroot / bindMount).mkdir(parents=True,exist_ok=True) + print(*['mount', '--bind', pathlib.Path('/') / bindMount, chroot / bindMount], file=stderr) subprocess.run(['mount', '--bind', pathlib.Path('/') / bindMount, chroot / bindMount], check=True) os.chroot(chroot) os.chdir('/') -- cgit v1.2.3