diff options
author | Helmut Grohne <helmut@subdivi.de> | 2025-07-12 16:47:55 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2025-07-12 16:47:55 +0200 |
commit | d94db7bc07780bab3e438fa4c6508534ae4eeb09 (patch) | |
tree | 46bd658a144fc9c12f68ed3cf53b3e171a69357c /examples/unschroot_fs.py | |
parent | c9e22969a01eecc6ff1865e7486b1ee198e4acbc (diff) | |
download | python-linuxnamespaces-d94db7bc07780bab3e438fa4c6508534ae4eeb09.tar.gz |
examples/unschroot_fs.py: tar chroot sessions must emit a Location
Diffstat (limited to 'examples/unschroot_fs.py')
-rwxr-xr-x | examples/unschroot_fs.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/unschroot_fs.py b/examples/unschroot_fs.py index 1487955..cda9f93 100755 --- a/examples/unschroot_fs.py +++ b/examples/unschroot_fs.py @@ -178,6 +178,13 @@ class TarSessionChroot(SessionChroot): self.path = path self.name = path.name + def infodata(self) -> dict[str, str]: + data = super().infodata() + # It's a gross lie, but sbuild does not work without. It has to + # actually exist and should not occur inside build logs. + data["Location"] = "/opt" + return data + def mount(self) -> pathlib.Path: linuxnamespaces.bind_mount(self.path, "/mnt", recursive=True) return pathlib.Path("/mnt") |