From d94db7bc07780bab3e438fa4c6508534ae4eeb09 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sat, 12 Jul 2025 16:47:55 +0200 Subject: examples/unschroot_fs.py: tar chroot sessions must emit a Location --- examples/unschroot_fs.py | 7 +++++++ 1 file changed, 7 insertions(+) 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") -- cgit v1.2.3