Copy GA metadata file to USM location
This commits switches the GA metadata file copy from /opt/patching/metadata to /opt/software/metadata. Test Plan PASS: build iso, install and verify that "software list" lists the GA release Story: 2010676 Task: 49112 Change-Id: I75b8cd6ae41a9cf9b5af0225ebcaaf0d9e0ddb4e Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com>
This commit is contained in:
parent
8d2883aa68
commit
e37f69765e
|
@ -3003,18 +3003,18 @@ fi
|
||||||
# Verify Patched iso
|
# Verify Patched iso
|
||||||
if [ -d "/instboot/patches" ]; then
|
if [ -d "/instboot/patches" ]; then
|
||||||
ilog "Prepatched iso"
|
ilog "Prepatched iso"
|
||||||
ilog "Creating patching metadata directories"
|
ilog "Creating USM metadata directories"
|
||||||
mkdir -p ${IMAGE_ROOTFS}/var/rootdirs/opt/patching/metadata/{committed,available,applied}
|
mkdir -p ${IMAGE_ROOTFS}/var/rootdirs/opt/software/metadata/{committed,available,applied}
|
||||||
cp -a /instboot/patches/* ${IMAGE_ROOTFS}/var/rootdirs/opt/patching/metadata/committed/
|
cp -a /instboot/patches/* ${IMAGE_ROOTFS}/var/rootdirs/opt/software/metadata/committed/
|
||||||
else
|
else
|
||||||
# Prepatch iso pxeboot
|
# Prepatch iso pxeboot
|
||||||
patches_url="${insturl/ostree_repo/patches}"
|
patches_url="${insturl/ostree_repo/patches}"
|
||||||
wget ${NOVERIFYSSL_WGET_OPT} -q --spider ${patches_url}/
|
wget ${NOVERIFYSSL_WGET_OPT} -q --spider ${patches_url}/
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
ilog "Prepatched iso from pxeboot"
|
ilog "Prepatched iso from pxeboot"
|
||||||
ilog "Creating patching metadata directories"
|
ilog "Creating USM metadata directories"
|
||||||
mkdir -p ${IMAGE_ROOTFS}/var/rootdirs/opt/patching/metadata/{committed,available,applied}
|
mkdir -p ${IMAGE_ROOTFS}/var/rootdirs/opt/software/metadata/{committed,available,applied}
|
||||||
cd ${IMAGE_ROOTFS}/var/rootdirs/opt/patching/metadata/committed
|
cd ${IMAGE_ROOTFS}/var/rootdirs/opt/software/metadata/committed
|
||||||
wget ${NOVERIFYSSL_WGET_OPT} --recursive --no-parent --no-host-directories --no-clobber \
|
wget ${NOVERIFYSSL_WGET_OPT} --recursive --no-parent --no-host-directories --no-clobber \
|
||||||
--accept='*.xml' -o /${LAT_DIR}/wget_prepatch_metadata.log -nd ${patches_url}/
|
--accept='*.xml' -o /${LAT_DIR}/wget_prepatch_metadata.log -nd ${patches_url}/
|
||||||
ilog "Metadata files copied"
|
ilog "Metadata files copied"
|
||||||
|
|
Loading…
Reference in New Issue