|
|
|
@ -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: 99%{?dist}
|
|
|
|
|
Release: 99%{?dist}.alma
|
|
|
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
License: GPLv3+
|
|
|
|
@ -24,10 +28,7 @@ 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
|
|
|
|
|
Source13: clsecureboot001.cer
|
|
|
|
|
Source17: sbat.csv.in
|
|
|
|
|
|
|
|
|
|
%include %{SOURCE1}
|
|
|
|
@ -169,10 +170,10 @@ git commit -m "After making subdirs"
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if 0%{with_efi_arch}
|
|
|
|
|
%{expand:%do_primary_efi_build %%{grubefiarch} %%{grubefiname} %%{grubeficdname} %%{_target_platform} %%{efi_target_cflags} %%{efi_host_cflags} %{SOURCE13} %{SOURCE14} redhatsecureboot301 %{SOURCE15} %{SOURCE16} redhatsecureboot502}
|
|
|
|
|
%{expand:%do_primary_efi_build %%{grubefiarch} %%{grubefiname} %%{grubeficdname} %%{_target_platform} %%{efi_target_cflags} %%{efi_host_cflags} %{SOURCE13} %{SOURCE14} alnsecureboot001}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with_alt_efi_arch}
|
|
|
|
|
%{expand:%do_alt_efi_build %%{grubaltefiarch} %%{grubaltefiname} %%{grubalteficdname} %%{_alt_target_platform} %%{alt_efi_target_cflags} %%{alt_efi_host_cflags} %{SOURCE13} %{SOURCE14} redhatsecureboot301 %{SOURCE15} %{SOURCE16} redhatsecureboot502}
|
|
|
|
|
%{expand:%do_alt_efi_build %%{grubaltefiarch} %%{grubaltefiname} %%{grubalteficdname} %%{_alt_target_platform} %%{alt_efi_target_cflags} %%{alt_efi_host_cflags} %{SOURCE13} %{SOURCE14} alnsecureboot001}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with_legacy_arch}
|
|
|
|
|
%{expand:%do_legacy_build %%{grublegacyarch}}
|
|
|
|
@ -333,6 +334,20 @@ if [ "$1" = 0 ]; then
|
|
|
|
|
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info.gz || :
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%if 0%{with_efi_arch}
|
|
|
|
|
%posttrans efi-x64
|
|
|
|
|
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 efi-ia32
|
|
|
|
|
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/
|
|
|
|
@ -503,6 +518,9 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Apr 09 2021 Andrew Lukoshko <alukoshko@almalinux.org> - 2.02-99.alma
|
|
|
|
|
- Debrand for AlmaLinux
|
|
|
|
|
|
|
|
|
|
* Thu Feb 25 2021 Javier Martinez Canillas <javierm@redhat.com> - 2.02-99
|
|
|
|
|
- Fix bug of grub2-install not checking for the SBAT option
|
|
|
|
|
Resolves: CVE-2020-14372
|
|
|
|
|