From 4cf690efccb04e8fe19f232325cffa7fe55d4dd0 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 19:28:36 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hosts/vidhar/borg') diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index a1c40c98..979dc5f4 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py @@ -103,9 +103,9 @@ def copy_archive(src_repo_path, dst_repo_path, entry): 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 os.environ.get('BORG_BASE_DIR'): - bindMounts.append(os.environ['BORG_BASE_DIR'].relative_to('/')) + bindMounts.append(pathlib.Path(os.environ['BORG_BASE_DIR']).relative_to('/')) if os.environ.get('CREDENTIALS_DIRECTORY'): - bindMounts.append(os.environ['CREDENTIALS_DIRECTORY'].relative_to('/')) + bindMounts.append(pathlib.Path(os.environ['CREDENTIALS_DIRECTORY']).relative_to('/')) if not ":" in src_repo_path: bindMounts.append(pathlib.Path(src_repo_path).relative_to('/')) if 'SSH_AUTH_SOCK' in os.environ: -- cgit v1.2.3