debian-forge/test
Tom Gundersen c2243aee6a stage: add org.osbuild.first-boot
This stage runs a given command only on the first boot of the image,
useful for doing instantiation tasks that can only be done in the
target environment, or that should be done per-instance, rather
than per image.

Ideally we would use systemd's ConditionFirstBoot for this, but that
requires images to ship without an /etc/machine-id, and currently
we only support shipping images with an empty /etc/machine-id.
Changing this would mean dropping /etc/fstab in favor of mounting
the rootfs rw from the initrd. This is likely the right thing to
do regardless, but we would have to audit what other first-boot
services we would end up with pulling in in this case.

Instead we introduce our own flag file /etc/osbuild-first-boot,
and use ConditionPathExists.

Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-04-15 16:07:34 +02:00
..
os-release test: add 2 more os-release tests 2020-02-29 12:35:19 +01:00
pipelines test/pipelines: drop sources.json 2020-04-15 15:29:52 +02:00
sources_tests/org.osbuild.files sources: add org.osbuild.files source 2020-02-06 19:01:12 +01:00
stages_tests stage: add org.osbuild.first-boot 2020-04-15 16:07:34 +02:00
testing-rpms improve vagrant test and its documentation 2019-07-25 12:46:53 +02:00
.gitignore introduce testing script 2019-07-09 10:29:48 +02:00
__init__.py osbuild: add description() methods 2019-08-07 10:01:17 +02:00
osbuildtest.py test: prune cache after each stage-test 2020-04-07 18:20:42 +02:00
test_assemblers.py tests/pipelines: embed all sources with their respective pipelines 2020-03-03 00:05:26 +01:00
test_boot.py test/boot: convert -accel ... -> -M accel=... for qemu 2020-03-27 08:28:14 +01:00
test_objectstore.py test/objecstore: check cleanup of immutable files 2020-03-30 23:58:33 +02:00
test_osbuild.py pipeline: pin the sources options in the pipeline object 2020-02-19 15:59:11 +01:00
test_osrelease.py pipeline: detect_os() -> describe_os() 2020-02-29 12:35:19 +01:00
test_sources.py sources: add org.osbuild.files source 2020-02-06 19:01:12 +01:00
test_stageinfo.py Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
test_stages.py tests/pipelines: embed all sources with their respective pipelines 2020-03-03 00:05:26 +01:00
test_util_ostree.py util: new ostree module with TreeFile helper 2020-04-15 15:39:45 +02:00
test_util_selinux.py util: add selinux config file related helpers 2020-04-15 15:39:45 +02:00