From 9d4d1e919cd197b8d6a2d81d5152fa06eb291d49 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Mon, 13 Mar 2023 11:55:04 -0500 Subject: [PATCH] Provide a legacy PXE boot core.0 This enables PXE booting with grub2 rather than syslinux. Signed-off-by: Chris Adams [rharwood: bump spec, fix commit message] Signed-off-by: Robbie Harwood --- grub.macros | 10 ++++++++++ grub2.spec | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/grub.macros b/grub.macros index e88a289..ce50aeb 100644 --- a/grub.macros +++ b/grub.macros @@ -623,6 +623,16 @@ if [ %{3} -eq 0 ]; then \ ${RPM_BUILD_ROOT}/%{_bindir}/grub2-editenv \\\ ${RPM_BUILD_ROOT}/boot/grub2/grubenv create \ fi \ +mkdir pxe \ +./grub-mknetdir \\\ + --directory ./grub-core \\\ + --fonts="" \\\ + --locales="" \\\ + --themes="" \\\ + --modules="configfile gzio linux reboot test" \\\ + --net-directory=pxe \\\ + --subdir . \ +mv pxe/*/core.0 $RPM_BUILD_ROOT/%{_libdir}/grub/%{1}/ \ %{expand:%%do_install_protected_file grub2-%{legacy_package_arch}} \ cd .. \ %{nil} diff --git a/grub2.spec b/grub2.spec index 811756b..7a3bad6 100644 --- a/grub2.spec +++ b/grub2.spec @@ -17,7 +17,7 @@ Name: grub2 Epoch: 1 Version: 2.06 -Release: 92%{?dist} +Release: 93%{?dist} Summary: Bootloader with support for Linux, Multiboot and more License: GPLv3+ URL: http://www.gnu.org/software/grub/ @@ -544,6 +544,9 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg %endif %changelog +* Fri Mar 31 2023 Robbie Harwood - 2.06-93 +- Add legacy pxe core.0 (cmadams) + * Thu Mar 30 2023 Robbie Harwood - 2.06-92 - Disable the tpm verifier if the TPM device is not present