Update pxe boot directory in kickstart for 21.12
Details: This change is to allow the kickstart looking for the right pxe boot directory in 21.12 for 22.12 upgrade Test Plan: PASS: 22.12 Debian is installed on both controllers Task: 46968 Story: 2009303 Signed-off-by: Junfeng (Shawn) Li <junfeng.li@windriver.com> Change-Id: I3401a25d41dd3af2c63fdb90c83316a35a9733d0
This commit is contained in:
parent
1796ed8740
commit
63912dc0b0
@ -2720,11 +2720,16 @@ if [ "$(curl -sf http://pxecontroller:6385/v1/upgrade/${hostname}/upgrade_in_pro
|
||||
${IMAGE_ROOTFS}/usr/bin/rpm2cpio ${INSTALL_RPM} | cpio -idm \
|
||||
|| report_failure_with_msg "Failed to extract pxe-network-installer"
|
||||
|
||||
PXEBOOT_DIR="/var/pxeboot/"
|
||||
if [[ "${OTHER_REL_VERSION}" == "21.12" ]]; then
|
||||
PXEBOOT_DIR="/pxeboot/"
|
||||
fi
|
||||
|
||||
cp -r ${TMP_RPM}/usr ${IMAGE_ROOTFS}/ \
|
||||
|| report_failure_with_msg "Failed to copy pxe-network-installer /usr"
|
||||
cp -r ${TMP_RPM}/var/pxeboot/$OTHER_REL_DIR ${IMAGE_ROOTFS}/var/pxeboot/ \
|
||||
cp -r ${TMP_RPM}${PXEBOOT_DIR}$OTHER_REL_DIR ${IMAGE_ROOTFS}/var/pxeboot/ \
|
||||
|| report_failure_with_msg "Failed to copy pxe-network-installer /var/pxeboot/$OTHER_REL_DIR"
|
||||
cp ${TMP_RPM}/var/pxeboot/pxelinux.cfg.files/*-${OTHER_REL_VERSION} ${IMAGE_ROOTFS}/var/pxeboot/pxelinux.cfg.files/ \
|
||||
cp ${TMP_RPM}${PXEBOOT_DIR}pxelinux.cfg.files/*-${OTHER_REL_VERSION} ${IMAGE_ROOTFS}/var/pxeboot/pxelinux.cfg.files/ \
|
||||
|| report_failure_with_msg "Failed to copy pxe-network-installer pxelinux.cfg files"
|
||||
|
||||
rm -rf ${TMP_RPM}
|
||||
|
Loading…
x
Reference in New Issue
Block a user