From 8a9d2443c5fb3745875f645b6e080c8c69ceabcb Mon Sep 17 00:00:00 2001 From: Kai Lueke Date: Fri, 22 Mar 2024 20:23:49 +0900 Subject: [PATCH] Draft for Proxmox support This makes use of https://github.com/coreos/afterburn/pull/1023 to set up any static networking from the initrd (for Ignition) and the hostname (early enough so that Ignition could overwrite it). --- dracut/30ignition/flatcar-metadata-hostname.service | 1 + dracut/30ignition/ignition-generator | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dracut/30ignition/flatcar-metadata-hostname.service b/dracut/30ignition/flatcar-metadata-hostname.service index 202916e..4dcde4d 100644 --- a/dracut/30ignition/flatcar-metadata-hostname.service +++ b/dracut/30ignition/flatcar-metadata-hostname.service @@ -33,6 +33,7 @@ ConditionKernelCommandLine=|flatcar.oem.id=vultr # Addition: ConditionKernelCommandLine=|coreos.oem.id=packet ConditionKernelCommandLine=|flatcar.oem.id=packet +ConditionKernelCommandLine=|flatcar.oem.id=proxmoxve OnFailure=emergency.target OnFailureJobMode=isolate diff --git a/dracut/30ignition/ignition-generator b/dracut/30ignition/ignition-generator index 59bdf80..c015ff5 100755 --- a/dracut/30ignition/ignition-generator +++ b/dracut/30ignition/ignition-generator @@ -146,6 +146,6 @@ if [ "${nopxe}" = 1 ]; then add_requires "disk-uuid.service" initrd.target fi -if [[ $(cmdline_arg flatcar.oem.id) == "digitalocean" ]] || [[ $(cmdline_arg coreos.oem.id) == "digitalocean" ]]; then +if [[ $(cmdline_arg flatcar.oem.id) == "digitalocean" ]] || [[ $(cmdline_arg coreos.oem.id) == "digitalocean" ]] || [[ $(cmdline_arg flatcar.oem.id) == "proxmoxve" ]]; then add_requires flatcar-digitalocean-network.service initrd.target fi