From 863b255df4ce0f1b1084bda0e2fa8adc4fd86f02 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Mon, 1 Jun 2020 16:24:06 +0800 Subject: [PATCH] stx-config-files: change the login banner to show oran release Change the login banner to show oran release instead of starlingx's platfrom release: 19.12 -> Bronze (2.0) Issue-ID: INF-145 Signed-off-by: Jackie Huang Change-Id: I190d2cbf21a3448d8b7915a01deb0555b9a8681b --- meta-stx/conf/distro/poky-stx.conf | 1 + meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/meta-stx/conf/distro/poky-stx.conf b/meta-stx/conf/distro/poky-stx.conf index 869866a..1d569ab 100644 --- a/meta-stx/conf/distro/poky-stx.conf +++ b/meta-stx/conf/distro/poky-stx.conf @@ -89,6 +89,7 @@ HELM_TOOL_KIT_VERSION = "0.1.0" TIS_PATCH_VER = "7" HELM_REPO = "stx-platform" STX_REL = "19.12" +ORAN_REL = "Bronze (2.0)" # For the stx /etc/build.info STX_ID = "3.0" diff --git a/meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb b/meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb index 7f3e778..2002e2d 100644 --- a/meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb +++ b/meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb @@ -251,8 +251,8 @@ pkg_postinst_ontarget_audit-config() { } pkg_postinst_centos-release-config() { - sed 's/@PLATFORM_RELEASE@/${STX_REL}/' $D${datadir}/starlingx/config-files/centos-release-config/files/issue >> $D${sysconfdir}/issue - sed 's/@PLATFORM_RELEASE@/${STX_REL}/' $D${datadir}/starlingx/config-files/centos-release-config/files/issue.net >> $D${sysconfdir}/issue.net + sed 's/@PLATFORM_RELEASE@/${ORAN_REL}/' $D${datadir}/starlingx/config-files/centos-release-config/files/issue >> $D${sysconfdir}/issue + sed 's/@PLATFORM_RELEASE@/${ORAN_REL}/' $D${datadir}/starlingx/config-files/centos-release-config/files/issue.net >> $D${sysconfdir}/issue.net chmod 644 $D${sysconfdir}/issue chmod 644 $D${sysconfdir}/issue.net } -- 2.16.6