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:
parent
4f280be013
commit
2412a68815
@ -32,6 +32,7 @@ Arguments:
|
|||||||
-T <tboot value> : Specify whether or not to use tboot (optional)
|
-T <tboot value> : Specify whether or not to use tboot (optional)
|
||||||
-k <kernel args> : Specify any extra kernel boot arguments (optional)
|
-k <kernel args> : Specify any extra kernel boot arguments (optional)
|
||||||
-l <base url> : Specify installer base URL
|
-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
|
-d : Update Debian grub menus ; rather than centos menus
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
@ -71,7 +72,7 @@ parms=$@
|
|||||||
logger -t $0 " $parms"
|
logger -t $0 " $parms"
|
||||||
debian_menus=false
|
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
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
i)
|
i)
|
||||||
@ -121,6 +122,9 @@ do
|
|||||||
l)
|
l)
|
||||||
base_url=$OPTARG
|
base_url=$OPTARG
|
||||||
;;
|
;;
|
||||||
|
v)
|
||||||
|
driver_ver=$OPTARG
|
||||||
|
;;
|
||||||
h)
|
h)
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
@ -200,6 +204,10 @@ if [ -n "$kernal_extra_args" ]; then
|
|||||||
APPEND_OPTIONS="$APPEND_OPTIONS $kernal_extra_args"
|
APPEND_OPTIONS="$APPEND_OPTIONS $kernal_extra_args"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$driver_ver" ]; then
|
||||||
|
APPEND_OPTIONS="$APPEND_OPTIONS multi-drivers-switch=$driver_ver"
|
||||||
|
fi
|
||||||
|
|
||||||
BASE_URL=$base_url
|
BASE_URL=$base_url
|
||||||
|
|
||||||
generate_config $input_file $output_file
|
generate_config $input_file $output_file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user