From 2cdde009ee00efb550da8a2f5a131f0a251a997f Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Wed, 12 May 2021 21:13:31 +0300 Subject: [PATCH] test: fix the Environment args to support UEFI boot This fixes part of the UEFI boot in Sfyra. UEFI boot is still buggy as UEFI doesn't quite support forcing boot from the network via QEMU args, but this brings it one step closer. Also clarify in the docs that iPXE filename depends on the node architecture. Signed-off-by: Andrey Smirnov --- docs/website/content/docs/v0.3/Guides/bootstrapping.md | 2 +- sfyra/pkg/tests/environment.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/website/content/docs/v0.3/Guides/bootstrapping.md b/docs/website/content/docs/v0.3/Guides/bootstrapping.md index 0f9789bf6..a006c1db3 100644 --- a/docs/website/content/docs/v0.3/Guides/bootstrapping.md +++ b/docs/website/content/docs/v0.3/Guides/bootstrapping.md @@ -61,7 +61,7 @@ allow bootp; allow booting; next-server 192.168.1.150; -filename "ipxe.efi"; +filename "ipxe.efi"; # use "undionly.kpxe" for BIOS netboot or "ipxe.efi" for UEFI netboot host talos-mgmt-0 { fixed-address 192.168.254.2; diff --git a/sfyra/pkg/tests/environment.go b/sfyra/pkg/tests/environment.go index 2fc0dc591..fe0cc9431 100644 --- a/sfyra/pkg/tests/environment.go +++ b/sfyra/pkg/tests/environment.go @@ -44,6 +44,7 @@ func TestEnvironmentDefault(ctx context.Context, metalClient client.Client, clus cmdline.Append("talos.platform", "metal") cmdline.Append("talos.shutdown", "halt") cmdline.Append("talos.config", fmt.Sprintf("http://%s:9091/configdata?uuid=", cluster.SideroComponentsIP())) + cmdline.Append("initrd", "initramfs.xz") environment.APIVersion = constants.SideroAPIVersion environment.Name = environmentName