2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 03:19:48 +00:00

Add branch to support legacy

Legacy boot gets into ipxe
through a kkpxe executable.
This commit is contained in:
Jarrod Johnson 2020-04-02 09:41:17 -04:00
parent bc7dc50388
commit ea537b1a1f

View File

@ -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