From 6dc8b4a57a342c91688fbe943d84f7d2a697efea Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Fri, 11 Jun 2021 00:18:35 +0200 Subject: [PATCH] Generate a GRUB config if is not present in the ESP If there's no GRUB config in the ESP, generate one. This is a full config but later the posttrans script will convert it to the minimal config stub. 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 b89c1a2..3ed5455 100644 --- a/grub2.spec +++ b/grub2.spec @@ -354,7 +354,7 @@ EFI_HOME=%{efi_esp_dir} GRUB_HOME=/boot/grub2 if test ! -f ${EFI_HOME}/grub.cfg; then - exit 0 # nothing to unify, nothing to do + grub2-mkconfig -o ${EFI_HOME}/grub.cfg fi if grep -q "configfile" ${EFI_HOME}/grub.cfg; then