From ea537b1a1fdb6a158975de490dec018ec049e09e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 2 Apr 2020 09:41:17 -0400 Subject: [PATCH] Add branch to support legacy Legacy boot gets into ipxe through a kkpxe executable. --- confluent_server/confluent/discovery/protocols/pxe.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/discovery/protocols/pxe.py b/confluent_server/confluent/discovery/protocols/pxe.py index dfd62d84..9d0c3b8f 100644 --- a/confluent_server/confluent/discovery/protocols/pxe.py +++ b/confluent_server/confluent/discovery/protocols/pxe.py @@ -249,8 +249,10 @@ def proxydhcp(): continue myip = socket.inet_ntoa(myipn) bootfile = 'http://{0}/confluent-public/os/{1}/boot/boot.ipxe'.format(myip, profile).encode('utf8') - else: + elif disco['arch'] == 'uefi-x64': bootfile = b'confluent/x86_64/ipxe.efi' + elif disco['arch'] == 'bios-x86' + bootfile = b'confluent/x86_64/ipxe.kkpxe' rpv[:240] = bytes(rqv[:240]) rpv[0:1] = b'\x02' rpv[108:108 + len(bootfile)] = bootfile