debian-forge/osbuild
Lars Karlitski 64713449ce Introduce runners
We've been using a generic `osbuild-run`, which sets up the build
environment (and works around bugs) for all build roots. It is already
getting unwieldy, because it tries to detect the OS for some things it
configures. It's also about to cause problems for RHEL, which doesn't
currently support a python3 shebang without having /etc around.

This patch changes the `build` key in a pipeline to not be a pipeline
itself, but an object with `runner` and `pipeline` keys. `pipeline` is
the build pipeline, as before. `runner` is the name of the runner to
use. Runners are programs in the `runners` subdirectory.

Three runners are included in this patch. They're copies of osbuild-run
for now (except some additions for rhel82). The idea is that each of
them only contains the minimal setup code necessary for an OS, and that
we can review what's needed when updating a build root.

Also modify the `--build-pipeline` command line switch to accept such a
build object (instead of a pipeline) and rename it accordingly, to
`--build-env`.

Correspondingly, `OSBUILD_TEST_BUILD_PIPELINE` → `OSBUILD_TEST_BUILD_ENV`.
2019-11-25 13:05:22 +01:00
..
__init__.py Introduce runners 2019-11-25 13:05:22 +01:00
__main__.py Introduce runners 2019-11-25 13:05:22 +01:00
api.py api: new host side API to be used by the container 2019-10-30 18:44:55 +01:00
buildroot.py Introduce runners 2019-11-25 13:05:22 +01:00
loop.py loop: add direct-io support 2019-07-25 23:55:43 +02:00
objectstore.py objectstore: refer to objects, not trees 2019-09-25 23:50:50 +02:00
pipeline.py Introduce runners 2019-11-25 13:05:22 +01:00
remoteloop.py dump_fds: add flags and address parameter 2019-10-30 18:44:55 +01:00
tmpfs.py osbuild: split package into separate files 2019-08-21 09:56:50 +04:00
treesum.py osbuild: split package into separate files 2019-08-21 09:56:50 +04:00