Update upgrade-start-pkg-extract for Debian
Details: For feature parity, the upgrade-start-pkg-extract has to be updated to support upgrading to Debian 22.12 and CentOS 22.12. This commit is similar to [1], but changes the script with same name but on CentOS side, needed to start the upgrade when going from Centos 'n' to Debian 'n+1'. [1] https://review.opendev.org/c/starlingx/update/+/850906 Test Plan: PASS: manually tested the script on Debian PASS: manually tested the script on CentOS Task: 45864 Story: 2009303 Change-Id: I56d93c097c65230482380d7524b769bc928f0f9f Signed-off-by: Heitor Matsui <HeitorVieira.Matsui@windriver.com>
This commit is contained in:
parent
93163a4aaa
commit
7e6513f71e
|
@ -60,6 +60,22 @@ if [ ! -d ${TGT_BASE_REPO} ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Copy files to destination folders on Debian
|
||||
if [ -d "${TGT_BASE_REPO}/ostree_repo/" ]; then
|
||||
rsync -ac ${TGT_BASE_REPO}/kickstart/kickstart.cfg ${TGT_BASE_REPO}/ &&
|
||||
rsync -ac ${TGT_BASE_REPO}/pxeboot/bzImage* /var/pxeboot/rel-${TGT_RELEASE}/ &&
|
||||
rsync -ac ${TGT_BASE_REPO}/pxeboot/initrd* /var/pxeboot/rel-${TGT_RELEASE}/ &&
|
||||
rsync -ac ${TGT_BASE_REPO}/pxeboot/pxelinux.cfg.files/*-${TGT_RELEASE} /var/pxeboot/pxelinux.cfg.files/
|
||||
rsync -ac ${TGT_BASE_REPO}/upgrades/pxeboot-update-${TGT_RELEASE}.sh /usr/sbin/
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
logger -t $0 "rsync command failed on Debian extracting"
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# The code below is only used on CentOS and will be removed when CentOS is no longer supported
|
||||
declare TGT_PATCHES_REPO_OPT=""
|
||||
if [ -d ${TGT_PATCHES_REPO} ]; then
|
||||
TGT_PATCHES_REPO_OPT="--repofrompath updates,${TGT_PATCHES_REPO}"
|
||||
|
|
Loading…
Reference in New Issue