From 0c790fcc01de8abcde19410664886f085cefd5de Mon Sep 17 00:00:00 2001 From: Jeremy Poulin Date: Mon, 16 Dec 2019 15:16:25 -0500 Subject: [PATCH] Forcing PLATFORM_ID to openstack on s390x systems --- dracut/30ignition/ignition-generator | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dracut/30ignition/ignition-generator b/dracut/30ignition/ignition-generator index 04d966b..34547cb 100755 --- a/dracut/30ignition/ignition-generator +++ b/dracut/30ignition/ignition-generator @@ -115,4 +115,9 @@ if [[ "${oemid}" == "digitalocean" ]]; then add_requires coreos-digitalocean-network.service fi +# Force openstack on s390x since fwd_config isn't available +if [[ $(uname -m) = s390x && "${oemid}" == "qemu" ]]; then + oem_id=openstack +fi + echo "OEM_ID=${oemid}" > /run/ignition.env