From 6b5d11f7609a51272e10ba45a59f6fbe1d0c38c2 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Thu, 10 Jun 2021 10:28:48 +0200 Subject: [PATCH] Use the proper macro instead of hard coding fedora The efi-srpm-macros package contais a macro for the ESP vendor directory to make sure that the correct one for each distro is used. But the grub2 package is instead hardcoding it to "fedora", use the macro instead. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Javier Martinez Canillas --- grub2.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub2.spec b/grub2.spec index 9f8918d..b89c1a2 100644 --- a/grub2.spec +++ b/grub2.spec @@ -350,7 +350,7 @@ rm -r /boot/grub2.tmp/ || : %posttrans common set -eu -EFI_HOME=/boot/efi/EFI/fedora +EFI_HOME=%{efi_esp_dir} GRUB_HOME=/boot/grub2 if test ! -f ${EFI_HOME}/grub.cfg; then