2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-23 10:52:41 +00:00

Check the iPXE shim of the booting architecture for HTTP boot

UEFI HTTP boot chainloads the iPXE shim only when it is installed, but
the check always looked for the x86_64 shim. An aarch64 node on a
server with only the x86_64 shim was offered the missing aarch64 one
and failed to boot, and on a server with only the aarch64 shim it got
the static boot.img instead.
This commit is contained in:
Markus Hilger
2026-11-17 21:05:33 +01:00
parent f72ce3f98a
commit 2ba8db30ef
@@ -800,9 +800,10 @@ async def reply_dhcp4(node, info, packet, cfg, reqview, httpboot, cfd, profile,
can302 = True
proto = 'https' if insecuremode == 'never' else 'http'
if isboot and httpboot:
shimarch = 'aarch64' if bootarch == 'uefi-httpboot-arm' else 'x86_64'
if (proto in ('http', 'https')
and os.path.exists('/var/lib/confluent/public/os/{}/boot.ipxe.shim'.format(profile))
and os.path.exists('/var/lib/confluent/public/ipxe/x86_64/ipxe-shim.efi')):
and os.path.exists('/var/lib/confluent/public/ipxe/{}/ipxe-shim.efi'.format(shimarch))):
if bootarch == 'uefi-httpboot':
bootfile = '{0}://{1}/confluent-public/ipxe/x86_64/ipxe-shim.efi'.format(
proto, myipn