|
|
|
@ -1,3 +1,7 @@
|
|
|
|
|
%global efi_vendor almalinux
|
|
|
|
|
%global efidir almalinux
|
|
|
|
|
%global efi_esp_dir /boot/efi/EFI/%{efidir}
|
|
|
|
|
|
|
|
|
|
# This package calls binutils components directly and would need to pass
|
|
|
|
|
# in flags to enable the LTO plugins
|
|
|
|
|
# Disable LTO
|
|
|
|
@ -14,7 +18,7 @@
|
|
|
|
|
Name: grub2
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Version: 2.06
|
|
|
|
|
Release: 38%{?dist}
|
|
|
|
|
Release: 38%{?dist}.alma
|
|
|
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
|
|
|
|
License: GPLv3+
|
|
|
|
|
URL: http://www.gnu.org/software/grub/
|
|
|
|
@ -40,19 +44,7 @@ Source12: sbat.csv.in
|
|
|
|
|
%define sb_cer %{_datadir}/pki/sb-certs/secureboot-grub2-%{_arch}.cer
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?centos}
|
|
|
|
|
%ifarch x86_64 aarch64 ppc64le
|
|
|
|
|
%define sb_key centossecureboot202
|
|
|
|
|
%endif
|
|
|
|
|
%else
|
|
|
|
|
%ifarch x86_64 aarch64
|
|
|
|
|
%define sb_key redhatsecureboot502
|
|
|
|
|
%endif
|
|
|
|
|
%ifarch ppc64le
|
|
|
|
|
%define sb_key redhatsecureboot602
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%define sb_key clsecureboot001
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc efi-srpm-macros
|
|
|
|
|
BuildRequires: flex bison binutils python3
|
|
|
|
@ -93,6 +85,9 @@ variety of kernel formats, file systems, computer architectures and \
|
|
|
|
|
hardware devices.\
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
# AlmaLinux: keep upstream EVR for RHEL SBAT entry
|
|
|
|
|
%define rhel_evr $(echo %{evr} | sed 's/\.alma.*//')
|
|
|
|
|
|
|
|
|
|
# generate with do-rebase
|
|
|
|
|
%include %{SOURCE11}
|
|
|
|
|
|
|
|
|
@ -185,7 +180,7 @@ This subpackage provides the GRUB user-space emulation modules.
|
|
|
|
|
mkdir grub-%{grubefiarch}-%{tarversion}
|
|
|
|
|
grep -A100000 '# stuff "make" creates' .gitignore > grub-%{grubefiarch}-%{tarversion}/.gitignore
|
|
|
|
|
cp %{SOURCE4} grub-%{grubefiarch}-%{tarversion}/unifont.pcf.gz
|
|
|
|
|
sed -e "s,@@VERSION@@,%{version},g" -e "s,@@VERSION_RELEASE@@,%{version}-%{release},g" \
|
|
|
|
|
sed -e "s,@@VERSION@@,%{version},g" -e "s,@@VERSION_RELEASE@@,%{version}-%{release},g" -e "s,@@RHEL_VERSION_RELEASE@@,%{rhel_evr},g" \
|
|
|
|
|
%{SOURCE12} > grub-%{grubefiarch}-%{tarversion}/sbat.csv
|
|
|
|
|
git add grub-%{grubefiarch}-%{tarversion}
|
|
|
|
|
%endif
|
|
|
|
@ -530,6 +525,9 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Oct 13 2022 Eduard Abdullin <eabdullin@almalinux.org> - 2.06-38.alma
|
|
|
|
|
- Debrand for AlmaLinux
|
|
|
|
|
|
|
|
|
|
* Tue Jun 28 2022 Robbie Harwood <rharwood@redhat.com> - 2.06-38
|
|
|
|
|
- Bless the TPM module on ppc64le
|
|
|
|
|
- Resolves: #2051314
|
|
|
|
|