mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-28 07:44:52 +00:00
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:
parent
dc0bc06560
commit
9d4d1e919c
2 changed files with 14 additions and 1 deletions
10
grub.macros
10
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}
|
||||
|
|
|
@ -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 <rharwood@redhat.com> - 2.06-93
|
||||
- Add legacy pxe core.0 (cmadams)
|
||||
|
||||
* Thu Mar 30 2023 Robbie Harwood <rharwood@redhat.com> - 2.06-92
|
||||
- Disable the tpm verifier if the TPM device is not present
|
||||
|
||||
|
|
Loading…
Reference in a new issue