Add intel multi-drivers-switch kernel parameter support to kickstarts

This update adds support to the Debian kickstarts to search the
install kernel command line for the multi-drivers-switch= option.
If that option is found, then the full option with the specified
version, ex: multi-drivers-switch=2.54 , will be added to the
disk boot kernel command line options.

Test Plan:

PASS: Verify Build and Install SX system
PASS: Unit test of code block function over an install
PASS: Verify if the multi-drivers-switch parameter exists on the
      the node install command line then the same option is
      propagated to the disk boot command line.
PASS: Verify the opposite of the above is true.

Closes-Bug: 2026893
Change-Id: I648b16dbc5aa2a0a7b8368c1b89a5d46418ab1e5
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
This commit is contained in:
Eric MacDonald 2023-05-16 19:31:40 +00:00
parent 0510b0c1a7
commit 61bad300f7
2 changed files with 24 additions and 0 deletions

View File

@ -2406,6 +2406,18 @@ if [ ! -z "${insthwsettle}" ]; then
fi fi
fi fi
# Search the install kernel command line for the multi-drivers-switch=
# option and if present propagate that to the disk boot kernel options.
CMDLINE=`cat /proc/cmdline`
param="multi-drivers-switch"
for option in ${CMDLINE} ; do
opt=${option%%=*}
if [ "${param}" = "${opt}" ]; then
add_kernel_option "${option}"
break
fi
done
######################################################################################## ########################################################################################
ilog "Adding these kernel params to disk boot: ${KERN_OPTS}" ilog "Adding these kernel params to disk boot: ${KERN_OPTS}"

View File

@ -2595,6 +2595,18 @@ if [ -n "${extra_boot_params}" ]; then
add_kernel_option "${extra_boot_params}" add_kernel_option "${extra_boot_params}"
fi fi
# Search the install kernel command line for the multi-drivers-switch=
# option and if present propagate that to the disk boot kernel options.
CMDLINE=`cat /proc/cmdline`
param="multi-drivers-switch"
for option in ${CMDLINE} ; do
opt=${option%%=*}
if [ "${param}" = "${opt}" ]; then
add_kernel_option "${option}"
break
fi
done
######################################################################################## ########################################################################################
ilog "Adding these kernel params to disk boot: ${KERN_OPTS}" ilog "Adding these kernel params to disk boot: ${KERN_OPTS}"