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.
This commit is contained in:
David Rheinsberg 2020-05-04 09:09:16 +02:00
parent 19328b062c
commit 33844711cd

View file

@ -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)