Provide a legacy PXE boot core.0

This enables PXE booting with grub2 rather than syslinux.

Signed-off-by: Chris Adams <linux@cmadams.net>
[rharwood: bump spec, fix commit message]
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
This commit is contained in:
Chris Adams 2023-03-13 11:55:04 -05:00 committed by Robbie Harwood
parent dc0bc06560
commit 9d4d1e919c
2 changed files with 14 additions and 1 deletions

View file

@ -623,6 +623,16 @@ if [ %{3} -eq 0 ]; then \
${RPM_BUILD_ROOT}/%{_bindir}/grub2-editenv \\\ ${RPM_BUILD_ROOT}/%{_bindir}/grub2-editenv \\\
${RPM_BUILD_ROOT}/boot/grub2/grubenv create \ ${RPM_BUILD_ROOT}/boot/grub2/grubenv create \
fi \ 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}} \ %{expand:%%do_install_protected_file grub2-%{legacy_package_arch}} \
cd .. \ cd .. \
%{nil} %{nil}

View file

@ -17,7 +17,7 @@
Name: grub2 Name: grub2
Epoch: 1 Epoch: 1
Version: 2.06 Version: 2.06
Release: 92%{?dist} Release: 93%{?dist}
Summary: Bootloader with support for Linux, Multiboot and more Summary: Bootloader with support for Linux, Multiboot and more
License: GPLv3+ License: GPLv3+
URL: http://www.gnu.org/software/grub/ URL: http://www.gnu.org/software/grub/
@ -544,6 +544,9 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
%endif %endif
%changelog %changelog
* Fri Mar 31 2023 Robbie Harwood <rharwood@redhat.com> - 2.06-93
- Add legacy pxe core.0 (cmadams)
* Thu Mar 30 2023 Robbie Harwood <rharwood@redhat.com> - 2.06-92 * Thu Mar 30 2023 Robbie Harwood <rharwood@redhat.com> - 2.06-92
- Disable the tpm verifier if the TPM device is not present - Disable the tpm verifier if the TPM device is not present