From 9464cf0ac981b54cc9d84e64f28f71d9fff35486 Mon Sep 17 00:00:00 2001 From: AbhishekJ Date: Tue, 3 Sep 2024 10:00:34 +0530 Subject: [PATCH] Use new kernel parameter in kickstarts This commit replaces "multi-drivers-switch" boot parameter with new "out-of-tree-drivers" boot parameter. As part of "move to in-tree driver" feature requirement, "multi-drivers-switch" boot parameter is removed as it is no longer supported and new boot parameter "out-of-tree-drivers" is added. The new boot parameter was introduced in the following review: https://review.opendev.org/c/starlingx/integ/+/922904 Test Plan: PASS: Verify Build and Install SX system PASS: Unit test of code block function over an install PASS: Verify if the out-of-tree-drivers parameter exists on the the node install command line then the same option is propagated to the disk boot command line. PASS: USM upgrade on SX from 22.12 to 24.09 - Set OOT driver using service parameter before upgrade and verify OOT drivers are loaded after upgrade. Story: 2011056 Task: 50954 Change-Id: Ib4b803423b4204fe661fc2be9bdf1d2e43d1ee47 Signed-off-by: AbhishekJ --- kickstart/files/kickstart.cfg | 4 ++-- kickstart/files/miniboot.cfg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kickstart/files/kickstart.cfg b/kickstart/files/kickstart.cfg index f497ab86..14c975bd 100644 --- a/kickstart/files/kickstart.cfg +++ b/kickstart/files/kickstart.cfg @@ -2490,10 +2490,10 @@ if [ ! -z "${insthwsettle}" ]; then fi fi -# Search the install kernel command line for the multi-drivers-switch= +# Search the install kernel command line for the out-of-tree-drivers= # option and if present propagate that to the disk boot kernel options. CMDLINE=`cat /proc/cmdline` -param="multi-drivers-switch" +param="out-of-tree-drivers" for option in ${CMDLINE} ; do opt=${option%%=*} if [ "${param}" = "${opt}" ]; then diff --git a/kickstart/files/miniboot.cfg b/kickstart/files/miniboot.cfg index db37b70e..d34d47e5 100644 --- a/kickstart/files/miniboot.cfg +++ b/kickstart/files/miniboot.cfg @@ -2649,10 +2649,10 @@ if [ -n "${extra_boot_params}" ]; then add_kernel_option "${extra_boot_params}" fi -# Search the install kernel command line for the multi-drivers-switch= +# Search the install kernel command line for the out-of-tree-drivers= # option and if present propagate that to the disk boot kernel options. CMDLINE=`cat /proc/cmdline` -param="multi-drivers-switch" +param="out-of-tree-drivers" for option in ${CMDLINE} ; do opt=${option%%=*} if [ "${param}" = "${opt}" ]; then