From 304d5a156357c9c17f254394fe2eab126dbee403 Mon Sep 17 00:00:00 2001 From: Joe Doss Date: Mon, 25 Jul 2022 21:16:25 -0500 Subject: [PATCH] Update iPXE example to match the FCOS documentation for booting with iPXE https://docs.fedoraproject.org/en-US/fedora-coreos/bare-metal/#_installing_from_ipxe Without these changes, the server will fail to boot with this error /dev/root can't open blockdev --- examples/terraform/fedora-coreos-install/profiles.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/terraform/fedora-coreos-install/profiles.tf b/examples/terraform/fedora-coreos-install/profiles.tf index dfa73ca9..14d2daa4 100644 --- a/examples/terraform/fedora-coreos-install/profiles.tf +++ b/examples/terraform/fedora-coreos-install/profiles.tf @@ -3,10 +3,11 @@ resource "matchbox_profile" "fedora-coreos-install" { name = "worker" kernel = "https://builds.coreos.fedoraproject.org/prod/streams/${var.os_stream}/builds/${var.os_version}/x86_64/fedora-coreos-${var.os_version}-live-kernel-x86_64" initrd = [ - "https://builds.coreos.fedoraproject.org/prod/streams/${var.os_stream}/builds/${var.os_version}/x86_64/fedora-coreos-${var.os_version}-live-initramfs.x86_64.img" + "--name main https://builds.coreos.fedoraproject.org/prod/streams/${var.os_stream}/builds/${var.os_version}/x86_64/fedora-coreos-${var.os_version}-live-initramfs.x86_64.img" ] args = [ + "initrd=main", "coreos.live.rootfs_url=https://builds.coreos.fedoraproject.org/prod/streams/${var.os_stream}/builds/${var.os_version}/x86_64/fedora-coreos-${var.os_version}-live-rootfs.x86_64.img", "coreos.inst.install_dev=/dev/sda", "coreos.inst.ignition_url=${var.matchbox_http_endpoint}/ignition?uuid=$${uuid}&mac=$${mac:hexhyp}",