11%global debug_package %{nil }
2+ %global efidir BOOT
23%ifarch x86_64
34%global buildarch x86_64
45%global grubefiname grubx64.efi
1213Summary: Signed GRand Unified Bootloader for %{buildarch } systems
1314Name: grub2-efi-binary-signed-%{buildarch }
1415Version: 2.06
15- Release: 21 %{?dist }
16+ Release: 22 %{?dist }
1617License: GPLv3+
1718Vendor: Microsoft Corporation
1819Distribution: Azure Linux
@@ -42,6 +43,8 @@ specifically created for installing on %{buildarch} systems
4243Summary: GRand Unified Bootloader
4344Group: Applications/System
4445Requires: grub2-tools-minimal = %{version }-%{release }
46+ Recommends: shim >= 15.8-3
47+ Conflicts: shim < 15.8-3
4548
4649# Some distros split 'grub2' into more subpackages. For now we're bundling it all together
4750# inside the default package and adding these 'Provides' to make installation more user-friendly
@@ -58,6 +61,8 @@ specifically created for installing on %{buildarch} systems
5861Summary: GRand Unified Bootloader
5962Group: Applications/System
6063Requires: grub2-tools-minimal = %{version }-%{release }
64+ Recommends: shim >= 15.8-3
65+ Conflicts: shim < 15.8-3
6166
6267%description -n grub2-efi-binary-noprefix
6368This package contains the GRUB EFI image with no prefix directory set and is signed for secure boot. The package is
@@ -68,17 +73,20 @@ specifically created for installing on %{buildarch} systems
6873%build
6974
7075%install
71- mkdir -p %{buildroot }/boot/efi/EFI/BOOT
72- cp %{SOURCE2 } %{buildroot }/boot/efi/EFI/BOOT /%{grubefiname }
73- cp %{SOURCE3 } %{buildroot }/boot/efi/EFI/BOOT /%{grubpxeefiname }
76+ mkdir -p %{buildroot }/boot/efi/EFI/%{ efidir }
77+ cp %{SOURCE2 } %{buildroot }/boot/efi/EFI/%{ efidir } /%{grubefiname }
78+ cp %{SOURCE3 } %{buildroot }/boot/efi/EFI/%{ efidir } /%{grubpxeefiname }
7479
7580%files -n grub2-efi-binary
76- /boot/efi/EFI/BOOT /%{grubefiname }
81+ /boot/efi/EFI/%{ efidir } /%{grubefiname }
7782
7883%files -n grub2-efi-binary-noprefix
79- /boot/efi/EFI/BOOT /%{grubpxeefiname }
84+ /boot/efi/EFI/%{ efidir } /%{grubpxeefiname }
8085
8186%changelog
87+ * Sun Nov 10 2024 Chris Co <chrco@microsoft.com> - 2.06-22
88+ - Set efidir location to BOOT for eventual use in changing to "azurelinux"
89+
8290* Mon Oct 28 2024 Chris Co <chrco@microsoft.com> - 2.06-21
8391- Bump release number to match grub release
8492
0 commit comments