From df8560940f5f776d1ad674aff98e4b2dc0e788e9 Mon Sep 17 00:00:00 2001 From: yangxiaoxuan Date: Tue, 26 Jan 2021 05:47:52 +0800 Subject: [PATCH] Rebrand for Anolis OS --- 0001-grubby-anolis-rebrand.patch | 25 +++++++++++++++++++++++++ grubby.spec | 12 +++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 0001-grubby-anolis-rebrand.patch diff --git a/0001-grubby-anolis-rebrand.patch b/0001-grubby-anolis-rebrand.patch new file mode 100644 index 0000000..672fb28 --- /dev/null +++ b/0001-grubby-anolis-rebrand.patch @@ -0,0 +1,25 @@ +From e0d8ccc74c0567fb0b319bedf9d10c5ec7def0b7 Mon Sep 17 00:00:00 2001 +From: yangxiaoxuan +Date: Tue, 26 Jan 2021 05:42:20 +0800 +Subject: [PATCH] grubby anolis rebrand + +--- + new-kernel-pkg | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/new-kernel-pkg b/new-kernel-pkg +index 0fe6caa..512ac2a 100755 +--- a/new-kernel-pkg ++++ b/new-kernel-pkg +@@ -162,6 +162,8 @@ set_title() { + title="$NAME ($version) $VERSION" + elif [ -f /etc/redhat-release ]; then + title="$(sed 's/ release.*$//' < /etc/redhat-release) ($version)" ++ elif [ -f /etc/anolis-release ]; then ++ title="$(sed 's/ release.*$//' < /etc/anolis-release) ($version)" + else + title="Red Hat Linux ($version)" + fi +-- +2.18.2 + diff --git a/grubby.spec b/grubby.spec index aeeeb6f..39d637c 100644 --- a/grubby.spec +++ b/grubby.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: grubby Version: 8.40 -Release: 42%{?dist} +Release: 42%{anolis_release}%{?dist} Summary: Command line tool for updating BootLoaderSpec files License: GPLv2+ URL: https://github.com/rhinstaller/grubby @@ -71,6 +73,11 @@ Patch0054: 0054-Make-installkernel-to-use-kernel-install-scripts-on-.patch Patch0055: 0055-Add-usr-libexec-rpm-sort.patch Patch0056: 0056-Improve-man-page-for-info-option.patch +#Add by anolis +Patch1000: 0001-grubby-anolis-rebrand.patch + +#end + BuildRequires: gcc BuildRequires: pkgconfig glib2-devel popt-devel BuildRequires: libblkid-devel git-core sed make @@ -169,6 +176,9 @@ current boot environment. %{_mandir}/man8/*.8* %changelog +* Wed Jan 12 2022 yangxiaoxuan - 8.40-42.0.1 +- Rebrand for Anolis OS + * Wed Jun 09 2021 Javier Martinez Canillas - 8.40-42 - grubby-bls: expand only the kernelopts variable Resolves: rhbz#1819666 -- Gitee