|
|
|
@ -1,3 +1,7 @@
|
|
|
|
|
%global efi_vendor almalinux
|
|
|
|
|
%global efidir almalinux
|
|
|
|
|
%global efi_esp_dir /boot/efi/EFI/%{efidir}
|
|
|
|
|
|
|
|
|
|
%undefine _hardened_build
|
|
|
|
|
|
|
|
|
|
%global tarversion 2.02
|
|
|
|
@ -7,7 +11,7 @@
|
|
|
|
|
Name: grub2
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Version: 2.02
|
|
|
|
|
Release: 148%{?dist}
|
|
|
|
|
Release: 142%{?dist}.3.alma.1
|
|
|
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
License: GPLv3+
|
|
|
|
@ -24,31 +28,29 @@ Source6: gitignore
|
|
|
|
|
Source8: strtoull_test.c
|
|
|
|
|
Source9: 20-grub.install
|
|
|
|
|
Source12: 99-grub-mkconfig.install
|
|
|
|
|
Source13: redhatsecurebootca3.cer
|
|
|
|
|
Source14: redhatsecureboot301.cer
|
|
|
|
|
Source15: redhatsecurebootca5.cer
|
|
|
|
|
Source16: redhatsecureboot502.cer
|
|
|
|
|
Source17: redhatsecureboot601.cer
|
|
|
|
|
Source18: redhatsecureboot701.cer
|
|
|
|
|
Source13: almalinuxsecurebootca0.cer
|
|
|
|
|
Source19: sbat.csv.in
|
|
|
|
|
|
|
|
|
|
%include %{SOURCE1}
|
|
|
|
|
|
|
|
|
|
%if 0%{with_efi_arch}
|
|
|
|
|
%define old_sb_ca %{SOURCE13}
|
|
|
|
|
%define old_sb_cer %{SOURCE14}
|
|
|
|
|
%define old_sb_key redhatsecureboot301
|
|
|
|
|
%define sb_ca %{SOURCE15}
|
|
|
|
|
%define sb_cer %{SOURCE16}
|
|
|
|
|
%define sb_key redhatsecureboot502
|
|
|
|
|
%define old_sb_cer %{SOURCE13}
|
|
|
|
|
%define old_sb_key almalinuxsecurebootca0
|
|
|
|
|
%define sb_ca %{SOURCE13}
|
|
|
|
|
%define sb_cer %{SOURCE13}
|
|
|
|
|
%define sb_key almalinuxsecurebootca0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%ifarch ppc64le
|
|
|
|
|
%define old_sb_cer %{SOURCE17}
|
|
|
|
|
%define sb_cer %{SOURCE18}
|
|
|
|
|
%define sb_key redhatsecureboot702
|
|
|
|
|
%define old_sb_cer %{SOURCE13}
|
|
|
|
|
%define sb_cer %{SOURCE13}
|
|
|
|
|
%define sb_key almalinuxsecurebootca0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# AlmaLinux: keep upstream EVR for RHEL SBAT entry
|
|
|
|
|
%define rhel_version_release $(echo %{version}-%{release} | sed 's/\.alma.*//')
|
|
|
|
|
|
|
|
|
|
# generate with do-rebase
|
|
|
|
|
%include %{SOURCE2}
|
|
|
|
|
|
|
|
|
@ -166,7 +168,7 @@ This subpackage provides tools for support of all platforms.
|
|
|
|
|
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_version_release},g" \
|
|
|
|
|
%{SOURCE19} > grub-%{grubefiarch}-%{tarversion}/sbat.csv
|
|
|
|
|
git add grub-%{grubefiarch}-%{tarversion}
|
|
|
|
|
%endif
|
|
|
|
@ -341,6 +343,20 @@ if [ "$1" = 0 ]; then
|
|
|
|
|
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info.gz || :
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%if 0%{with_efi_arch}
|
|
|
|
|
%posttrans %{package_arch}
|
|
|
|
|
if [ -d /sys/firmware/efi ] && [ ! -f %{efi_esp_dir}/grub.cfg ]; then
|
|
|
|
|
grub2-mkconfig -o %{efi_esp_dir}/grub.cfg || :
|
|
|
|
|
fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{with_alt_efi_arch}
|
|
|
|
|
%posttrans %{alt_package_arch}
|
|
|
|
|
if [ -d /sys/firmware/efi ] && [ ! -f %{efi_esp_dir}/grub.cfg ]; then
|
|
|
|
|
grub2-mkconfig -o %{efi_esp_dir}/grub.cfg || :
|
|
|
|
|
fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files common -f grub.lang
|
|
|
|
|
%dir %{_libdir}/grub/
|
|
|
|
|
%dir %{_datarootdir}/grub/
|
|
|
|
@ -510,30 +526,26 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Feb 06 2023 Robbie Harwood <rharwood@redhat.com> - 2.02-148
|
|
|
|
|
- ppc64le: cas5, take 3
|
|
|
|
|
- Resolves: #2139508
|
|
|
|
|
* Mon Feb 27 2023 Eduard Abdullin <eabdullin@almalinux.org> - 2.02-142.el8_7.3.alma.1
|
|
|
|
|
- Use AlmaLinux cert
|
|
|
|
|
|
|
|
|
|
* Tue Jan 10 2023 Robbie Harwood <rharwood@redhat.com> - 2.02-147
|
|
|
|
|
- Enable TDX measurement to RTMR register
|
|
|
|
|
- Resolves: #1981485
|
|
|
|
|
* Tue Feb 21 2023 Andrew Lukoshko <alukoshko@almalinux.org> - 2.02-142.el8_7.3.alma
|
|
|
|
|
- Debrand for AlmaLinux
|
|
|
|
|
|
|
|
|
|
* Wed Dec 14 2022 Robbie Harwood <rharwood@redhat.com> - 2.02-146
|
|
|
|
|
- ppc64le: fix lpar cas5
|
|
|
|
|
* Mon Feb 06 2023 Robbie Harwood <rharwood@redhat.com> - 2.02-142.el8_7.3
|
|
|
|
|
- Sync with 8.8 (actually 2.02-148)
|
|
|
|
|
- Resolves: #2139508
|
|
|
|
|
* Thu Jan 19 2023 Robbie Harwood <rharwood@redhat.com> - 2.02-142.el8_7.2
|
|
|
|
|
- Sync with 8.8 (actually 2.02-147)
|
|
|
|
|
- Resolves: #2162411
|
|
|
|
|
|
|
|
|
|
* Tue Nov 08 2022 Robbie Harwood <rharwood@redhat.com> - 1:2.02-145
|
|
|
|
|
- Font CVE fixes
|
|
|
|
|
* Thu Nov 08 2022 Robbie Harwood <rharwood@redhat.com> - 2.02-142.el8_7.1
|
|
|
|
|
- Sync with 8.8 (actually 2.02-145)
|
|
|
|
|
- Resolves: CVE-2022-2601
|
|
|
|
|
|
|
|
|
|
* Tue Oct 18 2022 Robbie Harwood <rharwood@redhat.com> - 2.02-144
|
|
|
|
|
- blscfg: don't assume newline at end of cfg
|
|
|
|
|
- Resolves: #2121132
|
|
|
|
|
|
|
|
|
|
* Wed Oct 12 2022 Robbie Harwood <rharwood@redhat.com> - 2.02-143
|
|
|
|
|
- x86-efi: Fix an incorrect array size in kernel allocation
|
|
|
|
|
- Also merge with 8.7
|
|
|
|
|
- Resolves: #2031288
|
|
|
|
|
* Thu Sep 08 2022 Robbie Harwood <rharwood@redhat.com> - 2.02-142
|
|
|
|
|
- Drop the arena size changes
|
|
|
|
|
- Resolves: #2118896
|
|
|
|
|
|
|
|
|
|
* Thu Aug 25 2022 Robbie Harwood <rharwood@redhat.com> - 2.02-141
|
|
|
|
|
- Implement vec5 for cas negotiation
|
|
|
|
|