summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-17 17:34:30 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-17 17:34:30 +0100
commit25579e3b53ad328493ed28a930549e56907adf59 (patch)
tree5120646328dbae2871b5a2f675c0b7eef1095917 /hosts
parent376ea264b252074bc53b356ac0da08392fe3045c (diff)
downloadnixos-25579e3b53ad328493ed28a930549e56907adf59.tar
nixos-25579e3b53ad328493ed28a930549e56907adf59.tar.gz
nixos-25579e3b53ad328493ed28a930549e56907adf59.tar.bz2
nixos-25579e3b53ad328493ed28a930549e56907adf59.tar.xz
nixos-25579e3b53ad328493ed28a930549e56907adf59.zip
vidhar: ...
Diffstat (limited to 'hosts')
-rwxr-xr-xhosts/vidhar/borg/copy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py
index 4e65968d..1f65d053 100755
--- a/hosts/vidhar/borg/copy.py
+++ b/hosts/vidhar/borg/copy.py
@@ -101,7 +101,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry):
101 for path in [chroot,upper,work]: 101 for path in [chroot,upper,work]:
102 path.mkdir() 102 path.mkdir()
103 subprocess.run(['mount', '-t', 'overlay', 'overlay', '-o', f'lowerdir=/,upperdir={upper},workdir={work}', chroot], check=True) 103 subprocess.run(['mount', '-t', 'overlay', 'overlay', '-o', f'lowerdir=/,upperdir={upper},workdir={work}', chroot], check=True)
104 bindMounts = ['nix', 'run', 'run/secrets', 'var/lib/borg', 'proc', 'dev', 'sys', pathlib.Path(os.path.expanduser('~')).relative_to('/')] 104 bindMounts = ['nix', 'run', 'run/secrets.d', 'var/lib/borg', 'proc', 'dev', 'sys', pathlib.Path(os.path.expanduser('~')).relative_to('/')]
105 if not ":" in src_repo_path: 105 if not ":" in src_repo_path:
106 bindMounts.append(pathlib.Path(src_repo_path).relative_to('/')) 106 bindMounts.append(pathlib.Path(src_repo_path).relative_to('/'))
107 if 'SSH_AUTH_SOCK' in os.environ: 107 if 'SSH_AUTH_SOCK' in os.environ: