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 <Eliud.Kyale@windriver.com>
This commit is contained in:
Kyale, Eliud 2024-09-05 11:30:04 -04:00
parent b12122960c
commit 8d530d8362

View File

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