From 1af394246eccd2dbc1fdbe3f199ba28b0e36b935 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 23 Nov 2022 09:26:54 -0800 Subject: [PATCH] Go back to installing unicode.pf2 lorax has its own code for building EFI images, and it needs the font file to do that successfully, so let's make sure it's there for lorax to find. This doesn't revert the embedding change, it just reverts the part where we don't bother to install the font to /boot/grub2/fonts any more. Signed-off-by: Adam Williamson --- grub.macros | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grub.macros b/grub.macros index 7228e20..b87b427 100644 --- a/grub.macros +++ b/grub.macros @@ -585,6 +585,8 @@ install -m 700 %{3} $RPM_BUILD_ROOT%{efi_esp_dir}/%{3} \ %ifarch %{arm} \ install -D -m 700 %{2} $RPM_BUILD_ROOT%{efi_esp_boot}/BOOTARM.EFI \ %endif \ +install -D -m 700 unicode.pf2 \\\ + ${RPM_BUILD_ROOT}/boot/grub2/fonts/unicode.pf2 \ ${RPM_BUILD_ROOT}/%{_bindir}/grub2-editenv \\\ ${RPM_BUILD_ROOT}/boot/grub2/grubenv create \ %{expand:%%do_install_protected_file grub2-%{package_arch}} \ @@ -692,6 +694,7 @@ ln -s ../boot/grub2/grub.cfg \\\ %ifarch %{arm} \ %attr(0700,root,root) %verify(not mtime) %{efi_esp_boot}/BOOTARM.EFI \ %endif \ +%attr(0700,root,root)/boot/grub2/fonts \ %dir %attr(0700,root,root)/boot/loader/entries \ %ghost %config(noreplace) %attr(0700,root,root)/boot/grub2/grub.cfg \ %ghost %config(noreplace) %verify(not mtime) %attr(0700,root,root)%{efi_esp_dir}/grub.cfg \ @@ -713,4 +716,5 @@ ln -s ../boot/grub2/grub.cfg \\\ %{expand:%%files %{1}-cdboot} \ %defattr(-,root,root,-) \ %attr(0700,root,root) %verify(not mtime) %{efi_esp_dir}/%{3} \ +%attr(0700,root,root)/boot/grub2/fonts \ %{nil}