From 33844711cd20f29d067047aaeb8682ac188428ba Mon Sep 17 00:00:00 2001 From: David Rheinsberg Date: Mon, 4 May 2020 09:09:16 +0200 Subject: [PATCH] buildroot: explicitly invoke runners via python3 Use the python-interpreter explicitly to invoke the runners. This works around inconsistencies between scripts imported from the host, and the interpreter taken from a build-root. --- osbuild/buildroot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osbuild/buildroot.py b/osbuild/buildroot.py index 32156163..945bb9dc 100644 --- a/osbuild/buildroot.py +++ b/osbuild/buildroot.py @@ -119,6 +119,8 @@ class BuildRoot(contextlib.AbstractContextManager): *[f"--bind-ro={b}" for b in nspawn_ro_binds], *[f"--bind={b}" for b in (binds or [])], *[f"--bind-ro={b}" for b in (readonly_binds or [])], + "--", + "python3", f"/run/osbuild/lib/runners/{self.runner}" ] + argv, check=check, **kwargs)