From 1777223232296683fb7af77832c718dd4b1ef14e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 27 Jan 2023 08:40:31 -0500 Subject: [PATCH] Fixes for osdeploy arm ipxe init --- confluent_server/bin/osdeploy | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/confluent_server/bin/osdeploy b/confluent_server/bin/osdeploy index 0f924d19..ed39e78c 100644 --- a/confluent_server/bin/osdeploy +++ b/confluent_server/bin/osdeploy @@ -217,13 +217,14 @@ def install_tftp_content(): else: emprint( 'Detected {0} as tftp directory, but unable to determine tftp service, ensure that a tftp server is installed and enabled manually'.format(tftplocation)) + otftplocation = tftplocation tftplocation = '{0}/confluent/x86_64'.format(tftplocation) try: os.makedirs(tftplocation) except OSError as e: if e.errno != 17: raise - armtftplocation = '{0}/confluent/aarch64'.format(tftplocation) + armtftplocation = '{0}/confluent/aarch64'.format(otftplocation) try: os.makedirs(armtftplocation) except OSError as e: @@ -231,8 +232,8 @@ def install_tftp_content(): raise shutil.copy('/opt/confluent/lib/ipxe/ipxe.efi', tftplocation) shutil.copy('/opt/confluent/lib/ipxe/ipxe.kkpxe', tftplocation) - if os.path.exists('/opt/confluent/lib/ipxe/ipxe-aarch64.efi') - shutil.copy('/opt/confluent/lib/ipxe/ipxe-aarch64.efi', armtftplocation) + if os.path.exists('/opt/confluent/lib/ipxe/ipxe-aarch64.efi'): + shutil.copy('/opt/confluent/lib/ipxe/ipxe-aarch64.efi', os.path.join(armtftplocation, 'ipxe.efi'))