diff --git a/bsp-files/kickstarts/pre_common_head.cfg b/bsp-files/kickstarts/pre_common_head.cfg index a3ed1ed4..f654ea5f 100644 --- a/bsp-files/kickstarts/pre_common_head.cfg +++ b/bsp-files/kickstarts/pre_common_head.cfg @@ -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" diff --git a/bsp-files/kickstarts/pre_disk_setup_common.cfg b/bsp-files/kickstarts/pre_disk_setup_common.cfg index b5e48081..99e27469 100644 --- a/bsp-files/kickstarts/pre_disk_setup_common.cfg +++ b/bsp-files/kickstarts/pre_disk_setup_common.cfg @@ -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 diff --git a/bsp-files/kickstarts/pre_prestaging_install_check.cfg b/bsp-files/kickstarts/pre_prestaging_install_check.cfg index 8be8189e..49409c87 100644 --- a/bsp-files/kickstarts/pre_prestaging_install_check.cfg +++ b/bsp-files/kickstarts/pre_prestaging_install_check.cfg @@ -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)