integ/grub/grubby/centos/patches/1000-Generic-name-for-Titanium.patch
Long Li a11b5eed5f CentOS 8: Upgrade grubby to version 8.40
(1)Release Version Upgrade
(2)Matching code changes with el7 to el8

Change-Id: I036b880e95e966cf0831d76aacbe06f5b813609b
Story: 2006729
Task: 37672
Depends-On: https://review.opendev.org/#/c/696481/
Depends-On: https://review.opendev.org/#/c/696050/
Signed-off-by: Long Li <lilong-neu@neusoft.com>
2019-12-13 09:35:29 +00:00

27 lines
740 B
Diff

From 7d3bd33be8b2c9924a2987710f54f5c62853d86c Mon Sep 17 00:00:00 2001
From: jmckenna <jason.mckenna@windriver.com>
Date: Wed, 5 Apr 2017 09:35:06 -0400
Subject: [PATCH] Use generic OS title for Titanium
Signed-off-by: lilong-neu <lilong-neu@neusoft.com>
---
new-kernel-pkg | 2 ++
1 file changed, 2 insertions(+)
diff --git a/new-kernel-pkg b/new-kernel-pkg
index 0fe6caa..9add50b 100755
--- a/new-kernel-pkg
+++ b/new-kernel-pkg
@@ -157,6 +157,8 @@ set_title() {
fi
elif [ $ARCH = 's390' -o $ARCH = 's390x' ]; then
title=$(echo $version | sed 's/ /_/g')
+ elif [ -f /etc/build.info ]; then
+ title="Linux ($version)"
elif [ -f /etc/os-release ]; then
. /etc/os-release
title="$NAME ($version) $VERSION"
--
2.7.4