diff --git a/0001-grubby-anolis-rebrand.patch b/0001-grubby-anolis-rebrand.patch new file mode 100644 index 0000000000000000000000000000000000000000..672fb284b251a56d3dc73153c37801b01623315d --- /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 aeeeb6f6ca9e8cc377c56e1479d18c44fd1b3e1b..39d637c5168ac82a46d9ae6cd4a10a461f406333 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