- mkdir -p ${STX_PRJ_OUTPUT}
- cd ${STX_PRJ_OUTPUT}
- wget -q ${ISO_UP} -O ${ISO_INF_COS}
- ls -lh ${STX_PRJ_OUTPUT}/${ISO_INF_COS}
+ sed -i "s|/import/mirrors|${STX_MIRROR_DIR}|" \
+ ${MY_REPO}/stx/metal/installer/pxe-network-installer/centos/build_srpm.data
+
+ grep -q "${ORAN_REL}" \
+ ${MY_REPO}/stx/config-files/centos-release-config/files/issue* \
+ || sed -i "s/\(@PLATFORM_RELEASE@\)/\1 - ${ORAN_REL}/" \
+ ${MY_REPO}/stx/config-files/centos-release-config/files/issue*
+
+ # Apply meta patches
+ cd ${SRC_META_PATCHES}
+ src_dirs=$(find . -type f -printf "%h\n"|uniq)
+ for d in ${src_dirs}; do
+ cd ${MY_REPO_ROOT_DIR}/${d}
+
+ # backup current branch
+ local_branch=$(git rev-parse --abbrev-ref HEAD)
+ if [ "${local_branch}" = "HEAD" ]; then
+ git checkout ${STX_SRC_BRANCH}
+ local_branch=$(git rev-parse --abbrev-ref HEAD)
+ fi
+ git branch -m "${local_branch}_${TIMESTAMP}"
+ git checkout ${STX_SRC_BRANCH}
+
+ for p in $(ls -1 ${SRC_META_PATCHES}/${d}); do
+ echo_info "Apllying patch: ${SRC_META_PATCHES}/${d}/${p}"
+ git am ${SRC_META_PATCHES}/${d}/${p}
+ done
+ done