Prestaging rootfs and bootfs customization with script provided

via the prestage iso

When customizing the rootfs and bootfs, an external script is
provided via the prestage iso. The kickstart needs to execute
this script and obtain the rootfs and bootfs devices.

Test Plan:

PASS: Test the default prestaging operation on subclouds with
      different storage types (hard disk/ssd (nvme) )

PASS: Test the force install of prestage iso on different
      subclouds with different storage types with pre-existing
      installations

PASS: Test the graceful failure to install prestaging content
      when trying to install on subclouds (with different
      storage types) with pre-existing installations (and
      force-install is not used)

Regression:

PASS: Verify that autoinstaller installs successfully for all
      options

Story: 2009948
Task: 45048

Change-Id: Icc483d3430531a86c9a6488306a38e7d246ddd58
Signed-off-by: Shrikumar Sharma <shrikumar.sharma@windriver.com>
This commit is contained in:
Shrikumar Sharma 2022-04-12 16:26:31 -04:00
parent dc3bfbf164
commit 8928bf875e
3 changed files with 14 additions and 1 deletions

View File

@ -7,6 +7,11 @@
set -- `cat /proc/cmdline`
for I in $*; do case "$I" in *=*) eval $I 2>/dev/null;; esac; done
# Source the custom setup script if it exists
if [ -e /run/install/repo/ks-setup.cfg ]; then
source /run/install/repo/ks-setup.cfg
fi
append=
if [ -n "$console" ] ; then
append="console=$console"

View File

@ -16,6 +16,11 @@ wlog "USB_DEV='$USB_DEV'."
set -- `cat /proc/cmdline`
for I in $*; do case "$I" in *=*) eval $I 2>/dev/null;; esac; done
# Source the custom setup script if it exists
if [ -e /run/install/repo/ks-setup.cfg ]; then
source /run/install/repo/ks-setup.cfg
fi
if [ -z "$boot_device" ]; then
boot_device=$(get_disk_dev)
fi

View File

@ -13,8 +13,11 @@ set -- `cat /proc/cmdline`
for I in $*; do case "$I" in *=*) eval $I 2>/dev/null;; esac; done
for J in $*; do case "$J" in force_install) force_install=${J};; esac; done
# if force_install is set, install anyway. Ignore the remainder of this section.
if [ -e /run/install/repo/ks-setup.cfg ]; then
source /run/install/repo/ks-setup.cfg
fi
# if force_install is set, install anyway. Ignore the remainder of this section.
if [ -z ${force_install} ]; then
if [ -z "$rootfs_device" ]; then
rootfs_device=$(get_disk_dev)