summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/unschroot_fs.py7
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")