From 1235e507e47a3bb5696a29763e6cd9f17766d9bf Mon Sep 17 00:00:00 2001 From: Andrew Lukoshko Date: Fri, 13 Oct 2023 13:52:53 +0200 Subject: [PATCH] Debrand SBAT for UKI --- SPECS/kernel.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SPECS/kernel.spec b/SPECS/kernel.spec index 0747799..9e309cf 100755 --- a/SPECS/kernel.spec +++ b/SPECS/kernel.spec @@ -2441,13 +2441,13 @@ BuildKernel() { sed -i 's/\x0.*$//' $KernelUnifiedImage.sbat # Add RHEL/CentOS specific entries %if 0%{?centos} - SBATsuffix="centos" + SBATsuffix="almalinux" %else - SBATsuffix="rhel" + SBATsuffix="almalinux" %endif - echo "linux,1,Red Hat,linux,$KernelVer,https://bugzilla.redhat.com/" >> $KernelUnifiedImage.sbat - echo "linux.$SBATsuffix,1,Red Hat,linux,$KernelVer,https://bugzilla.redhat.com/" >> $KernelUnifiedImage.sbat - echo "kernel-uki-virt.$SBATsuffix,1,Red Hat,kernel-uki-virt,$KernelVer,https://bugzilla.redhat.com/" >> $KernelUnifiedImage.sbat + echo "linux,1,AlmaLinux,linux,$KernelVer,https://bugs.almalinux.org/" >> $KernelUnifiedImage.sbat + echo "linux.$SBATsuffix,1,AlmaLinux,linux,$KernelVer,https://bugs.almalinux.org/" >> $KernelUnifiedImage.sbat + echo "kernel-uki-virt.$SBATsuffix,1,AlmaLinux,kernel-uki-virt,$KernelVer,https://bugs.almalinux.org/" >> $KernelUnifiedImage.sbat # Remove the original .sbat section objcopy --remove-section .sbat $KernelUnifiedImage # Get the end of the last section