Copy upgrade precheck to upgrades directory inside ISO
This commit copies the new standalone health check introduced in [1] to the upgrades dir inside the iso, so that it is available to be copied and run by the import command from the software management API. Test Plan: PASS: build the ISO successfully PASS: mount the built ISO and verify that the health check script is inside <mount_point>/upgrades [1] https://review.opendev.org/c/starlingx/update/+/883594 Story: 2010651 Task: 48162 Depends-on: https://review.opendev.org/c/starlingx/update/+/883594 Change-Id: I8cb5118dee08705ade0890b271dfdde1c4dc6927 Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com>
This commit is contained in:
parent
30822201fa
commit
c6d8c5dc30
@ -327,6 +327,7 @@ iso-post-script: |
|
||||
RELEASE_VER=$(cat ${IMAGE_ROOTFS}/etc/build.info | grep SW_VERSION | cut -f2 -d'=' | tr -d '"')
|
||||
mkdir -p upgrades
|
||||
cp ${IMAGE_ROOTFS}/etc/pxeboot-update-${RELEASE_VER}.sh upgrades/
|
||||
cp ${IMAGE_ROOTFS}/usr/sbin/platform-upgrade-precheck upgrades/
|
||||
cp ${IMAGE_ROOTFS}/opt/upgrades/import.sh upgrades/
|
||||
cp ${IMAGE_ROOTFS}/opt/upgrades/metadata.xml upgrades/
|
||||
sed -i "s/xxxSW_VERSIONxxx/${RELEASE_VER}/g" upgrades/metadata.xml
|
||||
|
Loading…
x
Reference in New Issue
Block a user