From 22076d1eea7ccb10541073c7318043d7634b7852 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 23 Jan 2018 14:57:29 -0500 Subject: [PATCH 3/4] add pxeboot package --- SOURCES/grub.macros | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/SOURCES/grub.macros b/SOURCES/grub.macros index 486604c..40cb5d5 100755 --- a/SOURCES/grub.macros +++ b/SOURCES/grub.macros @@ -219,6 +219,13 @@ Summary: Unsigned versions of GRUB EFI binaries \ %description %{1}-unsigned \ This package contains unsigned version of GRUB EFI binaries. \ \ +%package %{1}-pxeboot \ +Summary: PXE bootable GRUB EFI binaries \ + \ +%description %{1}-pxeboot \ +This package contains the version of EFI GRUB that is served by the pxeboot \ +server \ + \ %{nil} %global do_common_setup() \ @@ -391,6 +398,7 @@ ln -sf ../boot/efi/EFI/%{efidir}/grub.cfg \\\ $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-efi.cfg \ install -m 755 %{2} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{2}.unsigned \ install -m 755 %{3} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{3}.unsigned \ +install -D -m 755 %{2} $RPM_BUILD_ROOT/pxeboot/EFI/%{2} \ install -m 755 %{2} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{2} \ install -m 755 %{3} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{3} \ install -D -m 644 unicode.pf2 \\\ @@ -485,4 +493,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} -- 1.8.3.1