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

Merge pull request #393 from Obihoernchen/fix/httpboot-aarch64-shim

Check the iPXE shim of the booting architecture for HTTP boot
This commit is contained in:
Jarrod Johnson
2026-11-17 15:11:30 -05:00
committed by GitHub
@@ -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