integ/grub/grub2/centos/meta_patches/0008-add-pxeboot-package.patch
Jim Somerville 589e8020db grub2: cleanup meta patches
This commit results in no change to actual code.  It
cleans up the following issues in the meta patches:

- some patches generated fuzz and offset warnings
- patch file names do not match that generated by
  git format-patch
- some patches were not in git format, did not have
  a proper git header
- some patches were not signed off by anybody
- file names contained grub2 which is redundant
- one patch added a blank line to the end of a file
  generating a warning, and a subsequent patch removed
  it.  This has now been squashed out.

There are 13 patches in total, they were numbered 1-14 with
4 being absent.  They are now numbered 1-13.

Verification:
Built and captured the output, verified that there are no
more fuzz and offset warnings.

Closes-Bug: 1959037

Change-Id: I8056adf3ee96dc036262aa8c2d9eecfc353cc5ba
Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com>
2022-01-27 10:45:07 -05:00

52 lines
2.5 KiB
Diff

From 99a034b900d55da90234fd56a00944a4721c1390 Mon Sep 17 00:00:00 2001
Message-Id: <99a034b900d55da90234fd56a00944a4721c1390.1643237526.git.Jim.Somerville@windriver.com>
In-Reply-To: <8b5576704440696a7c8f1b00735217bf1745b6a1.1643237526.git.Jim.Somerville@windriver.com>
References: <8b5576704440696a7c8f1b00735217bf1745b6a1.1643237526.git.Jim.Somerville@windriver.com>
From: root <root@yow-cgts4-lx.wrs.com>
Date: Tue, 23 Jan 2018 14:57:29 -0500
Subject: [PATCH 08/13] add pxeboot package
Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com>
---
SOURCES/grub.macros | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/SOURCES/grub.macros b/SOURCES/grub.macros
index 539b5d5..c945920 100644
--- a/SOURCES/grub.macros
+++ b/SOURCES/grub.macros
@@ -224,6 +224,13 @@ Summary: Unsigned versions of GRUB EFI binaries \
%{expand:%%description %{1}-unsigned} \
This package contains unsigned version of GRUB EFI binaries. \
\
+%{expand:%%package %{1}-pxeboot} \
+Summary: PXE bootable GRUB EFI binaries \
+ \
+%{expand:%%description %{1}-pxeboot} \
+This package contains the version of EFI GRUB that is served by the pxeboot \
+server \
+ \
%{nil}
%global do_common_setup() \
@@ -398,6 +405,7 @@ ln -sf ../boot/efi/EFI/%{efidir}/grub.cfg \\\
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}-efi.cfg \
install -m 700 %{2} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{2}.unsigned \
install -m 700 %{3} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{3}.unsigned \
+install -D -m 755 %{2} $RPM_BUILD_ROOT/pxeboot/EFI/%{2} \
install -m 700 %{2} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{2} \
install -m 700 %{3} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{3} \
install -D -m 700 unicode.pf2 \\\
@@ -489,4 +497,8 @@ cd .. \
%{expand:%%files %{1}-unsigned} \
/boot/efi/EFI/%{efidir}/%{grubefiname}.unsigned \
/boot/efi/EFI/%{efidir}/%{grubeficdname}.unsigned \
+ \
+%{expand:%%files %{1}-pxeboot} \
+/pxeboot/EFI/%{grubefiname} \
+ \
%{nil}
--
2.29.2