diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 16:26:38 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 16:26:38 +0100 |
commit | eabaaa9c7a9adf158bdbcb3c269541cebd4ad21c (patch) | |
tree | 5a11ca7143e3635ffba3b13c519597c902a10440 /hosts/vidhar/borg/copy.py | |
parent | ff9ddf823707b81d207127267433002454d70bc7 (diff) | |
download | nixos-eabaaa9c7a9adf158bdbcb3c269541cebd4ad21c.tar nixos-eabaaa9c7a9adf158bdbcb3c269541cebd4ad21c.tar.gz nixos-eabaaa9c7a9adf158bdbcb3c269541cebd4ad21c.tar.bz2 nixos-eabaaa9c7a9adf158bdbcb3c269541cebd4ad21c.tar.xz nixos-eabaaa9c7a9adf158bdbcb3c269541cebd4ad21c.zip |
vidhar: ...
Diffstat (limited to 'hosts/vidhar/borg/copy.py')
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 2 |
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('/')] |