From edc9d1319445b1192eaa03bc67a39ce0faa67ff9 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Tue, 31 May 2022 10:36:18 +0800 Subject: [PATCH] build_inf_centos: add ORAN_REL in issue files Issue-ID: INF-274 Signed-off-by: Jackie Huang Change-Id: I69d36da3b0e9f0dad562e87cf27765ac0817afd5 --- scripts/build_inf_centos/build_inf_centos.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/build_inf_centos/build_inf_centos.sh b/scripts/build_inf_centos/build_inf_centos.sh index cb34833..aff1431 100755 --- a/scripts/build_inf_centos/build_inf_centos.sh +++ b/scripts/build_inf_centos/build_inf_centos.sh @@ -25,6 +25,8 @@ SRC_ORAN_BRANCH="master" SRC_ORAN_URL="https://gerrit.o-ran-sc.org/r/pti/rtp" +ORAN_REL="ORAN F-Release (6.0)" + SCRIPTS_DIR=$(dirname $(readlink -f $0)) SCRIPTS_NAME=$(basename $0) TIMESTAMP=`date +"%Y%m%d_%H%M%S"` @@ -239,7 +241,12 @@ patch_src () { echo_step_start "Some source codes need to be patched for INF project" sed -i "s|/import/mirrors|${STX_MIRROR_DIR}|" \ - $MY_REPO/stx/metal/installer/pxe-network-installer/centos/build_srpm.data + ${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} -- 2.16.6