1
0
forked from rpms/kernel

Debrand SBAT for UKI

This commit is contained in:
Andrew Lukoshko 2023-10-13 13:52:53 +02:00
parent 6e4309ddd8
commit 1235e507e4

View File

@ -2441,13 +2441,13 @@ BuildKernel() {
sed -i 's/\x0.*$//' $KernelUnifiedImage.sbat sed -i 's/\x0.*$//' $KernelUnifiedImage.sbat
# Add RHEL/CentOS specific entries # Add RHEL/CentOS specific entries
%if 0%{?centos} %if 0%{?centos}
SBATsuffix="centos" SBATsuffix="almalinux"
%else %else
SBATsuffix="rhel" SBATsuffix="almalinux"
%endif %endif
echo "linux,1,Red Hat,linux,$KernelVer,https://bugzilla.redhat.com/" >> $KernelUnifiedImage.sbat echo "linux,1,AlmaLinux,linux,$KernelVer,https://bugs.almalinux.org/" >> $KernelUnifiedImage.sbat
echo "linux.$SBATsuffix,1,Red Hat,linux,$KernelVer,https://bugzilla.redhat.com/" >> $KernelUnifiedImage.sbat echo "linux.$SBATsuffix,1,AlmaLinux,linux,$KernelVer,https://bugs.almalinux.org/" >> $KernelUnifiedImage.sbat
echo "kernel-uki-virt.$SBATsuffix,1,Red Hat,kernel-uki-virt,$KernelVer,https://bugzilla.redhat.com/" >> $KernelUnifiedImage.sbat echo "kernel-uki-virt.$SBATsuffix,1,AlmaLinux,kernel-uki-virt,$KernelVer,https://bugs.almalinux.org/" >> $KernelUnifiedImage.sbat
# Remove the original .sbat section # Remove the original .sbat section
objcopy --remove-section .sbat $KernelUnifiedImage objcopy --remove-section .sbat $KernelUnifiedImage
# Get the end of the last section # Get the end of the last section