From 33251e13330cba3d6050fded2ca0a09de05a6ade Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Mon, 27 Apr 2026 18:06:20 +0100 Subject: [PATCH 1/4] ignition: Tidy up the oem.id handler Signed-off-by: James Le Cuirot --- dracut/53ignition/ignition-setup-pre.sh | 42 ++++++++++++------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/dracut/53ignition/ignition-setup-pre.sh b/dracut/53ignition/ignition-setup-pre.sh index 77d9a69..e46c895 100755 --- a/dracut/53ignition/ignition-setup-pre.sh +++ b/dracut/53ignition/ignition-setup-pre.sh @@ -3,7 +3,7 @@ set -e -cmdline=( $( /run/ignition.env +case ${oem_cmdline} in + # Ignition changed the platform name to "aws" + ec2) oem_cmdline=aws ;; + # Ignition changed the platform name to "gcp" + gce) oem_cmdline=gcp ;; + # To maintain compatibility with eventual legacy 'flatcar.oem.id=pxe' + pxe) oem_cmdline=metal ;; +esac + +cat > /run/ignition.env < Date: Mon, 27 Apr 2026 18:18:23 +0100 Subject: [PATCH 2/4] ignition: Fall back to detection for cases unsupported by Ignition This saves us from having to patch these cases into Ignition like we have previously being doing. It also means we can make a more useful guess than just "metal", which does nothing. For example, this allows you to pass config via qemu_fw when testing PXE with QEMU. Signed-off-by: James Le Cuirot --- dracut/53ignition/ignition-setup-pre.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dracut/53ignition/ignition-setup-pre.sh b/dracut/53ignition/ignition-setup-pre.sh index e46c895..aa2e607 100755 --- a/dracut/53ignition/ignition-setup-pre.sh +++ b/dracut/53ignition/ignition-setup-pre.sh @@ -18,6 +18,8 @@ oem_id=metal case $(systemd-detect-virt) in kvm|qemu) oem_id=qemu ;; + oracle) oem_id=virtualbox ;; + vmware) oem_id=vmware ;; esac oem_cmdline=$(cmdline_arg flatcar.oem.id ${oem_id}) @@ -30,8 +32,8 @@ case ${oem_cmdline} in ec2) oem_cmdline=aws ;; # Ignition changed the platform name to "gcp" gce) oem_cmdline=gcp ;; - # To maintain compatibility with eventual legacy 'flatcar.oem.id=pxe' - pxe) oem_cmdline=metal ;; + # Fall back to detection for cases unsupported by Ignition + cloudsigma|pxe|vagrant) oem_cmdline=${oem_id} ;; esac cat > /run/ignition.env < Date: Mon, 27 Apr 2026 18:24:03 +0100 Subject: [PATCH 3/4] ignition: Drop support for Equinix Metal (packet) Signed-off-by: James Le Cuirot --- dracut/53ignition/flatcar-metadata-hostname.service | 3 --- dracut/53ignition/ignition-generator | 3 --- 2 files changed, 6 deletions(-) diff --git a/dracut/53ignition/flatcar-metadata-hostname.service b/dracut/53ignition/flatcar-metadata-hostname.service index be75de1..f570e56 100644 --- a/dracut/53ignition/flatcar-metadata-hostname.service +++ b/dracut/53ignition/flatcar-metadata-hostname.service @@ -30,9 +30,6 @@ ConditionKernelCommandLine=|coreos.oem.id=ibmcloud ConditionKernelCommandLine=|flatcar.oem.id=ibmcloud ConditionKernelCommandLine=|coreos.oem.id=vultr ConditionKernelCommandLine=|flatcar.oem.id=vultr -# Addition: -ConditionKernelCommandLine=|coreos.oem.id=packet -ConditionKernelCommandLine=|flatcar.oem.id=packet ConditionKernelCommandLine=|flatcar.oem.id=hetzner ConditionKernelCommandLine=|flatcar.oem.id=kubevirt diff --git a/dracut/53ignition/ignition-generator b/dracut/53ignition/ignition-generator index 7c613cc..60ca3cf 100755 --- a/dracut/53ignition/ignition-generator +++ b/dracut/53ignition/ignition-generator @@ -54,9 +54,6 @@ if $(cmdline_bool flatcar.first_boot 0) || $(cmdline_bool coreos.first_boot 0); if [[ $(cmdline_arg flatcar.first_boot) = "detected" ]] || [[ $(cmdline_arg coreos.first_boot) = "detected" ]]; then add_requires ignition-quench.service initrd.target fi - if [[ $(cmdline_arg flatcar.oem.id) == "packet" ]] || [[ $(cmdline_arg coreos.oem.id) == "packet" ]]; then - add_requires flatcar-static-network.service initrd.target - fi # On EC2, shut down systemd-networkd if ignition fails so that the instance # fails EC2 instance checks. From 32aede10a3d9e20036ead7e2dc45242f0f273f45 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Tue, 28 Apr 2026 14:48:13 +0100 Subject: [PATCH 4/4] update-bootengine: Add vboxguest module needed by newer Ignition Signed-off-by: James Le Cuirot --- update-bootengine | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-bootengine b/update-bootengine index 946f6b2..5a04650 100755 --- a/update-bootengine +++ b/update-bootengine @@ -22,7 +22,7 @@ DRACUT_ARGS=( --no-compress --omit "fido2 lvm multipath network pkcs11 tpm2-tss zfs" --add "i18n iscsi" - --add-drivers "loop brd drbd nbd rbd mmc_block xen-blkfront zram libarc4 lru_cache zsmalloc" + --add-drivers "loop brd drbd nbd rbd mmc_block xen-blkfront zram libarc4 lru_cache zsmalloc vboxguest" --kernel-cmdline "SYSTEMD_SULOGIN_FORCE=1" )