diff --git a/0001-add-loongarch-support-for-grubby.patch b/0001-add-loongarch-support-for-grubby.patch new file mode 100644 index 0000000..d5c88cf --- /dev/null +++ b/0001-add-loongarch-support-for-grubby.patch @@ -0,0 +1,25 @@ +From d62aafe2f5b72dcaae95fa26433eed264fa68f84 Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Tue, 25 Oct 2022 01:42:40 +0000 +Subject: [PATCH] add loongarch support for grubby, Only EFI startup is supported for loongarch64 + +--- + grubby.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/grubby.c b/grubby.c +index 74befea..ea3a636 100644 +--- a/grubby.c ++++ b/grubby.c +@@ -60,7 +60,7 @@ int debug = 0; /* Currently just for template debugging */ + + int isEfi = 0; + +-#if defined(__aarch64__) ++#if defined(__aarch64__) || (__loongarch64) + #define isEfiOnly 1 + #else + #define isEfiOnly 0 +-- +2.33.0 + diff --git a/grubby.spec b/grubby.spec index 1847173..d6942be 100644 --- a/grubby.spec +++ b/grubby.spec @@ -1,6 +1,6 @@ Name: grubby Version: 8.40 -Release: 29 +Release: 30 Summary: Update and display information about the configuration files License: GPLv2+ URL: https://github.com/rhinstaller/grubby @@ -35,6 +35,7 @@ Patch6017: backport-Fix-maybe-uninitialized-warning.patch Patch9001: fix-make-test-fail-when-no-boot-partition.patch Patch9002: Fix-make-test-fail-for-g2-1.15.patch +Patch9003: 0001-add-loongarch-support-for-grubby.patch BuildRequires: gcc pkgconfig glib2-devel popt-devel BuildRequires: libblkid-devel git-core sed make @@ -109,6 +110,9 @@ sed -e "s,@@LIBEXECDIR@@,%{_libexecdir}/installkernel,g" %{SOURCE3} > %{buildroo %{_mandir}/man8/*.8* %changelog +* Tue Nov 01 2022 Wenlong Zhang - 8.40-30 +- add loongarch support for grubby + * Wed Oct 26 2022 yanglongkang - 8.40-29 - rebuild for next release