From 2412a68815108473bcc65b94a2737ed5ad533232 Mon Sep 17 00:00:00 2001 From: Bin Qian Date: Tue, 16 May 2023 13:56:07 -0400 Subject: [PATCH] Add multi-drivers-switch param to pxeboot cfg Accept and apply intel driver ver parameter to pxeboot conf file for nodes to be installed (include reinstall and upgrade). TCs: Observed the pxeboot cfg file for a new host is configured with param multi-drivers-switch= Story: 2010651 Task: 48276 Signed-off-by: Bin Qian Change-Id: I6aebff98a5bb831de82f6da07ac53978b17f8caf --- .../pxe-network-installer/pxeboot-update.sh | 38 +++++++++++-------- 1 file changed, 23 insertions(+), 15 deletions(-) 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 ab65d59b..045e949d 100755 --- a/installer/pxe-network-installer/pxe-network-installer/pxeboot-update.sh +++ b/installer/pxe-network-installer/pxe-network-installer/pxeboot-update.sh @@ -19,20 +19,21 @@ function usage { $0: This utility is used to generate a node-specific pxeboot.cfg file Arguments: - -i : Specify template to use - -o : Specify output filename - -t : Use text install (optional) - -g : Use graphical install (optional) - -c : Specify serial console (optional) - -b : Specify boot device - -r : Specify rootfs device - -H : Delay at init waiting for H/W to be ready (optional) - -u : Base url for TIS install progress notification - -s : Specify Security Profile mode (optional) - -T : Specify whether or not to use tboot (optional) - -k : Specify any extra kernel boot arguments (optional) - -l : Specify installer base URL - -d : Update Debian grub menus ; rather than centos menus + -i : Specify template to use + -o : Specify output filename + -t : Use text install (optional) + -g : Use graphical install (optional) + -c : Specify serial console (optional) + -b : Specify boot device + -r : Specify rootfs device + -H : Delay at init waiting for H/W to be ready (optional) + -u : Base url for TIS install progress notification + -s : Specify Security Profile mode (optional) + -T : Specify whether or not to use tboot (optional) + -k : Specify any extra kernel boot arguments (optional) + -l : Specify installer base URL + -v : Specify intel driver ver to load + -d : Update Debian grub menus ; rather than centos menus EOF } @@ -71,7 +72,7 @@ parms=$@ logger -t $0 " $parms" debian_menus=false -while getopts "i:o:tgc:b:r:H:u:s:T:k:l:h:d" opt +while getopts "i:o:tgc:b:r:H:u:s:T:k:l:v:h:d" opt do case $opt in i) @@ -121,6 +122,9 @@ do l) base_url=$OPTARG ;; + v) + driver_ver=$OPTARG + ;; h) usage exit 1 @@ -200,6 +204,10 @@ if [ -n "$kernal_extra_args" ]; then APPEND_OPTIONS="$APPEND_OPTIONS $kernal_extra_args" fi +if [ -n "$driver_ver" ]; then + APPEND_OPTIONS="$APPEND_OPTIONS multi-drivers-switch=$driver_ver" +fi + BASE_URL=$base_url generate_config $input_file $output_file