debian-forge/stages
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
..
org.osbuild.chrony Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.debug-shell Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.error stages/error: fix json for stage options 2020-01-28 13:10:14 +01:00
org.osbuild.firewall Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.first-boot stage: add org.osbuild.first-boot 2020-04-15 16:07:34 +02:00
org.osbuild.fix-bls stages/fix-bls: support for different prefix 2020-01-19 23:01:36 +01:00
org.osbuild.fstab Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.groups Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.grub2 stages/grub2: opt-out option for /etc/default/grub 2020-04-15 15:39:45 +02:00
org.osbuild.hostname Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.kernel-cmdline stages/kopts: new stage to set the kernel cmdline 2020-01-13 20:05:10 +01:00
org.osbuild.keymap Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.locale Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.noop Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.ostree stages/ostree: fix SELinux labels after deployment 2020-04-15 15:39:45 +02:00
org.osbuild.rpm stages/rpm: be a bit more verbose to give some progress indication 2020-02-06 19:01:12 +01:00
org.osbuild.rpm-ostree stages: add new org.osbuild.rpm-ostree stage 2020-04-15 15:39:45 +02:00
org.osbuild.script Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.selinux Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.systemd stages/systemd: add default_target 2019-11-27 22:22:13 +01:00
org.osbuild.test Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.timezone Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.users Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.yum Add STAGE_DESC, STAGE_INFO, and STAGE_OPTS to stages 2019-11-13 21:47:03 +01:00
org.osbuild.zipl stage/zipl: new stage to configure zipl 2020-01-13 20:05:10 +01:00
osbuild stages/assemblers: symlink the osbulid python library 2019-07-25 21:28:23 +02:00