summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-17 16:26:38 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-17 16:26:38 +0100
commiteabaaa9c7a9adf158bdbcb3c269541cebd4ad21c (patch)
tree5a11ca7143e3635ffba3b13c519597c902a10440 /hosts
parentff9ddf823707b81d207127267433002454d70bc7 (diff)
downloadnixos-eabaaa9c7a9adf158bdbcb3c269541cebd4ad21c.tar
nixos-eabaaa9c7a9adf158bdbcb3c269541cebd4ad21c.tar.gz
nixos-eabaaa9c7a9adf158bdbcb3c269541cebd4ad21c.tar.bz2
nixos-eabaaa9c7a9adf158bdbcb3c269541cebd4ad21c.tar.xz
nixos-eabaaa9c7a9adf158bdbcb3c269541cebd4ad21c.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 71d9fe55..3cf5f968 100755
--- a/hosts/vidhar/borg/copy.py
+++ b/hosts/vidhar/borg/copy.py
@@ -117,7 +117,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry):
117 path.mkdir() 117 path.mkdir()
118 print(f'euid={os.getuid()}', file=stderr) 118 print(f'euid={os.getuid()}', file=stderr)
119 subprocess.run(['stat', '/', lower, upper, work, chroot], check=True) 119 subprocess.run(['stat', '/', lower, upper, work, chroot], check=True)
120 subprocess.run(['mount', '-t', 'shifts', '/', lower], check=True) 120 subprocess.run(['mount', '-t', 'shiftfs', '/', lower], check=True)
121 subprocess.run(['stat', lower], check=True) 121 subprocess.run(['stat', lower], check=True)
122 subprocess.run(['mount', '-t', 'overlay', 'overlay', '-o', f'lowerdir={lower},upperdir={upper},workdir={work}', chroot], check=True) 122 subprocess.run(['mount', '-t', 'overlay', 'overlay', '-o', f'lowerdir={lower},upperdir={upper},workdir={work}', chroot], check=True)
123 bindMounts = ['nix', 'run', 'proc', 'dev', 'sys', pathlib.Path(os.path.expanduser('~')).relative_to('/')] 123 bindMounts = ['nix', 'run', 'proc', 'dev', 'sys', pathlib.Path(os.path.expanduser('~')).relative_to('/')]