Prepare upgrade to OSTree enabled distribution
This change is to enable the upgrade to next release, which will support OSTree. In the next release, /www and /pxeboot will be moved to /var/www and /var/pxeboot respectively. During upgrade to next release, rpms from next release will need to be extracted into current release structure (/var and /pxeboot). TCs: Passed: upgrade to build with /www and /pxeboot moved under /var. Change-Id: Id0dec2dee89dcad04c24b12a7a6072d03078f65e Story: 2009101 Task: 43539 Signed-off-by: Bin Qian <bin.qian@windriver.com>
This commit is contained in:
parent
68ae62b89e
commit
a83f30e032
@ -110,9 +110,9 @@ fi
|
||||
dnf clean expire-cache
|
||||
extract_pkg pxe-network-installer
|
||||
rsync -ac ${WORKDIR}/usr/ /usr/ &&
|
||||
rsync -ac ${WORKDIR}/pxeboot/rel-${TGT_RELEASE}/ /pxeboot/rel-${TGT_RELEASE}/ &&
|
||||
rsync -c ${WORKDIR}/pxeboot/pxelinux.cfg.files/*-${TGT_RELEASE} /pxeboot/pxelinux.cfg.files/ &&
|
||||
rsync -ac ${WORKDIR}/www/pages/feed/rel-${TGT_RELEASE}/ /www/pages/feed/rel-${TGT_RELEASE}/
|
||||
rsync -ac ${WORKDIR}/var/pxeboot/rel-${TGT_RELEASE}/ /pxeboot/rel-${TGT_RELEASE}/ &&
|
||||
rsync -c ${WORKDIR}/var/pxeboot/pxelinux.cfg.files/*-${TGT_RELEASE} /pxeboot/pxelinux.cfg.files/ &&
|
||||
rsync -ac ${WORKDIR}/var/www/pages/feed/rel-${TGT_RELEASE}/ /www/pages/feed/rel-${TGT_RELEASE}/
|
||||
if [ $? -ne 0 ]; then
|
||||
logger -t $0 "rsync command failed, extracting pxe-network-installer"
|
||||
exit 1
|
||||
@ -126,7 +126,7 @@ if [ -z "${WORKDIR}" -o ! -d "${WORKDIR}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
extract_pkg platform-kickstarts
|
||||
rsync -ac ${WORKDIR}/www/pages/feed/rel-${TGT_RELEASE}/ /www/pages/feed/rel-${TGT_RELEASE}/
|
||||
rsync -ac ${WORKDIR}/var/www/pages/feed/rel-${TGT_RELEASE}/ /www/pages/feed/rel-${TGT_RELEASE}/
|
||||
if [ $? -ne 0 ]; then
|
||||
logger -t $0 "rsync command failed, extracting platform-kickstarts"
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user