From 91ba274ad96c82394f4a4d47e4eb8fd4669e7b49 Mon Sep 17 00:00:00 2001 From: Jan Larwig Date: Mon, 21 Oct 2024 09:32:09 +0200 Subject: [PATCH 1/5] add ionoscloud oem --- dracut/30ignition/flatcar-metadata-hostname.service | 1 + 1 file changed, 1 insertion(+) diff --git a/dracut/30ignition/flatcar-metadata-hostname.service b/dracut/30ignition/flatcar-metadata-hostname.service index fc75732..9d56af5 100644 --- a/dracut/30ignition/flatcar-metadata-hostname.service +++ b/dracut/30ignition/flatcar-metadata-hostname.service @@ -35,6 +35,7 @@ ConditionKernelCommandLine=|coreos.oem.id=packet ConditionKernelCommandLine=|flatcar.oem.id=packet ConditionKernelCommandLine=|flatcar.oem.id=hetzner ConditionKernelCommandLine=|flatcar.oem.id=kubevirt +ConditionKernelCommandLine=|flatcar.oem.id=ionoscloud OnFailure=emergency.target OnFailureJobMode=isolate From 210e74c2b5c9642bdc943cc899fb4fb3e2f92125 Mon Sep 17 00:00:00 2001 From: Jan Larwig Date: Mon, 21 Oct 2024 15:01:33 +0200 Subject: [PATCH 2/5] use qemu ignition platform for ionoscloud --- dracut/30ignition/ignition-setup-pre.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dracut/30ignition/ignition-setup-pre.sh b/dracut/30ignition/ignition-setup-pre.sh index 77d9a69..3acab85 100755 --- a/dracut/30ignition/ignition-setup-pre.sh +++ b/dracut/30ignition/ignition-setup-pre.sh @@ -39,4 +39,8 @@ if [ "${oem_cmdline}" = "pxe" ]; then oem_cmdline="metal" fi +if [ "${oem_cmdline}" = "ionoscloud" ]; then + oem_cmdline="qemu" +fi + { echo "OEM_ID=${oem_cmdline}" ; echo "PLATFORM_ID=${oem_cmdline}" ; } > /run/ignition.env From dc60e2fcc09e99082e2f1c8287a7526328217391 Mon Sep 17 00:00:00 2001 From: Jan Larwig Date: Tue, 22 Oct 2024 09:42:26 +0200 Subject: [PATCH 3/5] ionos provides hostname via dhcp --- dracut/30ignition/flatcar-metadata-hostname.service | 1 - 1 file changed, 1 deletion(-) diff --git a/dracut/30ignition/flatcar-metadata-hostname.service b/dracut/30ignition/flatcar-metadata-hostname.service index 9d56af5..fc75732 100644 --- a/dracut/30ignition/flatcar-metadata-hostname.service +++ b/dracut/30ignition/flatcar-metadata-hostname.service @@ -35,7 +35,6 @@ ConditionKernelCommandLine=|coreos.oem.id=packet ConditionKernelCommandLine=|flatcar.oem.id=packet ConditionKernelCommandLine=|flatcar.oem.id=hetzner ConditionKernelCommandLine=|flatcar.oem.id=kubevirt -ConditionKernelCommandLine=|flatcar.oem.id=ionoscloud OnFailure=emergency.target OnFailureJobMode=isolate From 2d6d37c9376605c586ea1acd2cb763773ababcb7 Mon Sep 17 00:00:00 2001 From: Jan Larwig Date: Thu, 24 Oct 2024 13:02:25 +0200 Subject: [PATCH 4/5] add workaround for ignition --- dracut/30ignition/ignition-setup-pre.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dracut/30ignition/ignition-setup-pre.sh b/dracut/30ignition/ignition-setup-pre.sh index 3acab85..45d7f59 100755 --- a/dracut/30ignition/ignition-setup-pre.sh +++ b/dracut/30ignition/ignition-setup-pre.sh @@ -40,7 +40,7 @@ if [ "${oem_cmdline}" = "pxe" ]; then fi if [ "${oem_cmdline}" = "ionoscloud" ]; then - oem_cmdline="qemu" + { echo "OEM_ID=ionoscloud" ; echo "PLATFORM_ID=file" ; echo "IGNITION_CONFIG_FILE=/sysroot/var/lib/cloud/seed/nocloud/user-data" } > /run/ignition.env +else + { echo "OEM_ID=${oem_cmdline}" ; echo "PLATFORM_ID=${oem_cmdline}" ; } > /run/ignition.env fi - -{ echo "OEM_ID=${oem_cmdline}" ; echo "PLATFORM_ID=${oem_cmdline}" ; } > /run/ignition.env From d4311dba261abac7a5a5d3dd620032d2cc891b1d Mon Sep 17 00:00:00 2001 From: Jan Larwig Date: Thu, 31 Oct 2024 16:25:17 +0100 Subject: [PATCH 5/5] test: using qemu as the ignition platform to not fail --- dracut/30ignition/ignition-setup-pre.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut/30ignition/ignition-setup-pre.sh b/dracut/30ignition/ignition-setup-pre.sh index 45d7f59..db30b87 100755 --- a/dracut/30ignition/ignition-setup-pre.sh +++ b/dracut/30ignition/ignition-setup-pre.sh @@ -40,7 +40,7 @@ if [ "${oem_cmdline}" = "pxe" ]; then fi if [ "${oem_cmdline}" = "ionoscloud" ]; then - { echo "OEM_ID=ionoscloud" ; echo "PLATFORM_ID=file" ; echo "IGNITION_CONFIG_FILE=/sysroot/var/lib/cloud/seed/nocloud/user-data" } > /run/ignition.env + { echo "OEM_ID=ionoscloud" ; echo "PLATFORM_ID=qemu" } > /run/ignition.env #; echo "IGNITION_CONFIG_FILE=/sysroot/var/lib/cloud/seed/nocloud/user-data" } > /run/ignition.env else { echo "OEM_ID=${oem_cmdline}" ; echo "PLATFORM_ID=${oem_cmdline}" ; } > /run/ignition.env fi