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=<ver from service parameter>

Story: 2010651
Task: 48276

Signed-off-by: Bin Qian <bin.qian@windriver.com>
Change-Id: I6aebff98a5bb831de82f6da07ac53978b17f8caf
This commit is contained in:
Bin Qian 2023-05-16 13:56:07 -04:00 committed by Junfeng Li
parent 4f280be013
commit 2412a68815

View File

@ -32,6 +32,7 @@ Arguments:
-T <tboot value> : Specify whether or not to use tboot (optional)
-k <kernel args> : Specify any extra kernel boot arguments (optional)
-l <base url> : Specify installer base URL
-v <intel driver ver> : 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