diff options
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index de62dfa5..96426682 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py | |||
@@ -125,6 +125,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry): | |||
125 | bindMounts.append(pathlib.Path(os.environ['SSH_AUTH_SOCK']).parent.relative_to('/')) | 125 | bindMounts.append(pathlib.Path(os.environ['SSH_AUTH_SOCK']).parent.relative_to('/')) |
126 | for bindMount in bindMounts: | 126 | for bindMount in bindMounts: |
127 | (chroot / bindMount).mkdir(parents=True,exist_ok=True) | 127 | (chroot / bindMount).mkdir(parents=True,exist_ok=True) |
128 | print(*['mount', '--bind', pathlib.Path('/') / bindMount, chroot / bindMount], file=stderr) | ||
128 | subprocess.run(['mount', '--bind', pathlib.Path('/') / bindMount, chroot / bindMount], check=True) | 129 | subprocess.run(['mount', '--bind', pathlib.Path('/') / bindMount, chroot / bindMount], check=True) |
129 | os.chroot(chroot) | 130 | os.chroot(chroot) |
130 | os.chdir('/') | 131 | os.chdir('/') |