From 8d530d83628f8c88477830366d8919986bf8c1e5 Mon Sep 17 00:00:00 2001 From: "Kyale, Eliud" Date: Thu, 5 Sep 2024 11:30:04 -0400 Subject: [PATCH] Fix _update_pxe_config() backwards compatibility _update_pxe_config() calls pxeboot-update-99.99.sh script during an upgrade host unlock the script may have an input file with lowlatency as part of its name. lowlatency install files have been recently removed. To maintain backwards compatibility in older releases that call this script, we shall strip the lowlatency string from the filename and use the standard pxe installer file. For example pxeboot/pxelinux.cfg.files/pxe-smallsystem_lowlatency-install-99.99 becomes pxeboot/pxelinux.cfg.files/pxe-smallsystem-install-99.99 Test plan: PASS - AIO-SX: iso install PASS - AIO-DX: iso install PASS - AIO-SX: upgrade Story: 2010676 Task: 50973 Change-Id: I46f09e38f74c41f8e72f70da84680cdd788f376b Signed-off-by: Kyale, Eliud --- .../pxe-network-installer/pxeboot-update.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/installer/pxe-network-installer/pxe-network-installer/pxeboot-update.sh b/installer/pxe-network-installer/pxe-network-installer/pxeboot-update.sh index 045e949d..82672d3e 100755 --- a/installer/pxe-network-installer/pxe-network-installer/pxeboot-update.sh +++ b/installer/pxe-network-installer/pxe-network-installer/pxeboot-update.sh @@ -77,7 +77,10 @@ do case $opt in i) input_file=$OPTARG - input_file_efi=$(dirname $input_file)/efi-$(basename $input_file) + input_file_basename=$(basename $input_file) + # lowlatency files removed. Added for backwards compatibility + fixed_input_file_basename=$(echo $input_file_basename | sed 's/_lowlatency//') + input_file_efi=$(dirname $input_file)/efi-$fixed_input_file_basename ;; o) output_file=$OPTARG