integ/grub/grub2/centos/patches/1000_linux-mktitle-de-brand-the-grub.cfg-menu.patch
Scott Little c428727bf5 Relocate grub2 to stx-integ/grub/grub2
Move content from stx-gplv3 into stx-integ

Packages will be relocated to

stx-integ:
    base/
        anaconda
        crontabs
        dnsmasq
        rsync

    database/
        python-psycopg2

    filesystem/
        parted

    grub/
        grub2

    security/
        python-keyring

Change-Id: Ib2807e3762a9ad17ef246398ab8e8cb7a7cf335c
Story: 2002801
Task: 22687
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-01 15:39:49 -04:00

48 lines
1.3 KiB
Diff

From 6934956143557c548cc35dcc272aae1ee3d706c8 Mon Sep 17 00:00:00 2001
From: RHEL Ninjas <example@example.com>
Date: Wed, 5 Oct 2016 15:14:28 -0400
Subject: [PATCH] 10_linux: mktitle: de-brand the grub.cfg menu
Replace "CentOS" with a generic name.
Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
---
util/grub.d/10_linux.in | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
index b3c460c..131c1f2 100644
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -71,22 +71,20 @@ mktitle ()
local title_type
local version
local OS_NAME
- local OS_VERS
title_type=$1 && shift
version=$1 && shift
- OS_NAME="$(eval $(grep ^NAME= /etc/os-release) ; echo ${NAME})"
- OS_VERS="$(eval $(grep ^VERSION= /etc/os-release) ; echo ${VERSION})"
+ OS_NAME="Linux"
case $title_type in
recovery)
- title=$(printf '%s (%s) %s (recovery mode)' \
- "${OS_NAME}" "${version}" "${OS_VERS}")
+ title=$(printf '%s (%s) (recovery mode)' \
+ "${OS_NAME}" "${version}")
;;
*)
- title=$(printf '%s (%s) %s' \
- "${OS_NAME}" "${version}" "${OS_VERS}")
+ title=$(printf '%s (%s)' \
+ "${OS_NAME}" "${version}")
;;
esac
echo -n ${title}
--
1.8.3.1