summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-17 16:15:08 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-17 16:15:08 +0100
commite0038544b9d990900d423c002e75b9da80481d41 (patch)
tree942f448e50cb1b06e006864d009ed9561f4d265d /hosts
parent56bc30cebbf734a1bccdb3fc3e6f8be6be2a6236 (diff)
downloadnixos-e0038544b9d990900d423c002e75b9da80481d41.tar
nixos-e0038544b9d990900d423c002e75b9da80481d41.tar.gz
nixos-e0038544b9d990900d423c002e75b9da80481d41.tar.bz2
nixos-e0038544b9d990900d423c002e75b9da80481d41.tar.xz
nixos-e0038544b9d990900d423c002e75b9da80481d41.zip
vidhar: ...
Diffstat (limited to 'hosts')
-rwxr-xr-xhosts/vidhar/borg/copy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py
index 8cfcbd56..fb0414d5 100755
--- a/hosts/vidhar/borg/copy.py
+++ b/hosts/vidhar/borg/copy.py
@@ -116,6 +116,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry):
116 path.mkdir() 116 path.mkdir()
117 print(f'euid={os.getuid()}', file=stderr) 117 print(f'euid={os.getuid()}', file=stderr)
118 subprocess.run(['stat', '/', upper, work, chroot], check=True) 118 subprocess.run(['stat', '/', upper, work, chroot], check=True)
119 subprocess.run(['mount', '-t', 'tmpfs', 'tmpfs', chroot], check=True)
119 subprocess.run(['mount', '-t', 'overlay', 'overlay', '-o', f'lowerdir=/,upperdir={upper},workdir={work}', chroot], check=True) 120 subprocess.run(['mount', '-t', 'overlay', 'overlay', '-o', f'lowerdir=/,upperdir={upper},workdir={work}', chroot], check=True)
120 bindMounts = ['nix', 'run', 'proc', 'dev', 'sys', pathlib.Path(os.path.expanduser('~')).relative_to('/')] 121 bindMounts = ['nix', 'run', 'proc', 'dev', 'sys', pathlib.Path(os.path.expanduser('~')).relative_to('/')]
121 if not ":" in src_repo_path: 122 if not ":" in src_repo_path: