Skip to content

Commit 33ddc96

Browse files
christophercoddstreetddstreetmicrosoft
authored
Update shim to v15.8 (#10995)
Signed-off-by: Chris Co <chrco@microsoft.com> Co-authored-by: Dan Streetman <ddstreet@ieee.org> Co-authored-by: Dan Streetman <ddstreet@microsoft.com>
1 parent b3e6eba commit 33ddc96

42 files changed

Lines changed: 1095 additions & 840 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/validate-cg-manifest.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ ignore_no_source_tarball=" \
5252
python-rpm-generators \
5353
qt-rpm-macros \
5454
sgx-backwards-compatibility \
55+
shim \
5556
web-assets \
5657
"
5758

LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSES-AND-NOTICES/SPECS/data/licenses.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,6 +1986,8 @@
19861986
"sgpio",
19871987
"shared-mime-info",
19881988
"sharutils",
1989+
"shim-unsigned-aarch64",
1990+
"shim-unsigned-x64",
19891991
"sip",
19901992
"sisu",
19911993
"skkdic",
@@ -2417,9 +2419,6 @@
24172419
"sdbus-cpp",
24182420
"sgx-backwards-compatibility",
24192421
"shim",
2420-
"shim-unsigned",
2421-
"shim-unsigned-aarch64",
2422-
"shim-unsigned-x64",
24232422
"skopeo",
24242423
"span-lite",
24252424
"sriov-network-device-plugin",

SPECS-SIGNED/grub2-efi-binary-signed/grub2-efi-binary-signed.spec

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
%global debug_package %{nil}
2+
%global efidir BOOT
23
%ifarch x86_64
34
%global buildarch x86_64
45
%global grubefiname grubx64.efi
@@ -12,7 +13,7 @@
1213
Summary: Signed GRand Unified Bootloader for %{buildarch} systems
1314
Name: grub2-efi-binary-signed-%{buildarch}
1415
Version: 2.06
15-
Release: 21%{?dist}
16+
Release: 22%{?dist}
1617
License: GPLv3+
1718
Vendor: Microsoft Corporation
1819
Distribution: Azure Linux
@@ -42,6 +43,8 @@ specifically created for installing on %{buildarch} systems
4243
Summary: GRand Unified Bootloader
4344
Group: Applications/System
4445
Requires: 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
5861
Summary: GRand Unified Bootloader
5962
Group: Applications/System
6063
Requires: 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
6368
This 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

SPECS/grub2/grub2.spec

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
%define debug_package %{nil}
2+
%define efidir BOOT
23
%define __os_install_post %{nil}
34
# Gnulib does not produce source tarball releases, and grub's bootstrap.conf
45
# bakes in a specific commit id to pull (GNULIB_REVISION).
56
%global gnulibversion d271f868a8df9bbec29049d01e056481b7a1a263
67
Summary: GRand Unified Bootloader
78
Name: grub2
89
Version: 2.06
9-
Release: 21%{?dist}
10+
Release: 22%{?dist}
1011
License: GPLv3+
1112
Vendor: Microsoft Corporation
1213
Distribution: Azure Linux
@@ -173,6 +174,8 @@ Unsigned GRUB UEFI image
173174
Summary: GRUB UEFI image
174175
Group: System Environment/Base
175176
Requires: %{name}-tools-minimal = %{version}-%{release}
177+
Recommends: shim >= 15.8-3
178+
Conflicts: shim < 15.8-3
176179

177180
# Some distros split 'grub2' into more subpackages. For now we're bundling it all together
178181
# inside the default package and adding these 'Provides' to make installation more user-friendly
@@ -188,6 +191,8 @@ GRUB UEFI bootloader binaries
188191
Summary: GRUB UEFI image with no prefix directory set
189192
Group: System Environment/Base
190193
Requires: %{name}-tools-minimal = %{version}-%{release}
194+
Recommends: shim >= 15.8-3
195+
Conflicts: shim < 15.8-3
191196

192197
%description efi-binary-noprefix
193198
GRUB UEFI bootloader binaries with no prefix directory set
@@ -320,7 +325,7 @@ install -d %{buildroot}%{_datadir}/grub2-efi
320325
%endif
321326

322327
# Install to efi directory
323-
EFI_BOOT_DIR=%{buildroot}/boot/efi/EFI/BOOT
328+
EFI_BOOT_DIR=%{buildroot}/boot/efi/EFI/%{efidir}
324329
GRUB_MODULE_NAME=
325330
GRUB_MODULE_SOURCE=
326331

@@ -394,18 +399,18 @@ cp $GRUB_PXE_MODULE_SOURCE $EFI_BOOT_DIR/$GRUB_PXE_MODULE_NAME
394399

395400
%files efi-binary
396401
%ifarch x86_64
397-
/boot/efi/EFI/BOOT/grubx64.efi
402+
/boot/efi/EFI/%{efidir}/grubx64.efi
398403
%endif
399404
%ifarch aarch64
400-
/boot/efi/EFI/BOOT/grubaa64.efi
405+
/boot/efi/EFI/%{efidir}/grubaa64.efi
401406
%endif
402407

403408
%files efi-binary-noprefix
404409
%ifarch x86_64
405-
/boot/efi/EFI/BOOT/grubx64-noprefix.efi
410+
/boot/efi/EFI/%{efidir}/grubx64-noprefix.efi
406411
%endif
407412
%ifarch aarch64
408-
/boot/efi/EFI/BOOT/grubaa64-noprefix.efi
413+
/boot/efi/EFI/%{efidir}/grubaa64-noprefix.efi
409414
%endif
410415

411416
%ifarch aarch64
@@ -428,6 +433,10 @@ cp $GRUB_PXE_MODULE_SOURCE $EFI_BOOT_DIR/$GRUB_PXE_MODULE_NAME
428433
%config(noreplace) %{_sysconfdir}/grub.d/41_custom
429434

430435
%changelog
436+
* Sun Nov 10 2024 Chris Co <chrco@microsoft.com> - 2.06-22
437+
- Set efidir location to BOOT for eventual use in changing to "azurelinux"
438+
- Bump release to also force signing with the new Azure Linux secure boot key
439+
431440
* Mon Oct 28 2024 Chris Co <chrco@microsoft.com> - 2.06-21
432441
- Add Fedora SBAT entries
433442

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
For details on how to test this package during development, see the
3+
TESTING file in the shim package.
1.68 KB
Binary file not shown.
-1.26 KB
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
shim.azurelinux,1,Microsoft,shim,15.8,https://github.com/microsoft/azurelinux
2+
shim.rh,3,The Fedora Project,shim,15.8,https://src.fedoraproject.org/rpms/shim-unsigned-x64
3+
shim.redhat,3,The Fedora Project,shim,15.8,https://src.fedoraproject.org/rpms/shim-unsigned-x64
4+
shim.fedora,3,The Fedora Project,shim,15.8,https://src.fedoraproject.org/rpms/shim-unsigned-x64

SPECS/shim-unsigned-aarch64/sbat.csv.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)