mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 22:35:28 +00:00
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 <javierm@redhat.com>
This commit is contained in:
parent
5a095a7619
commit
7a89121a6a
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@ EFI_HOME=%{efi_esp_dir}
|
||||||
GRUB_HOME=/boot/grub2
|
GRUB_HOME=/boot/grub2
|
||||||
|
|
||||||
if test ! -f ${EFI_HOME}/grub.cfg; then
|
if test ! -f ${EFI_HOME}/grub.cfg; then
|
||||||
exit 0 # nothing to unify, nothing to do
|
grub2-mkconfig -o ${EFI_HOME}/grub.cfg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if grep -q "configfile" ${EFI_HOME}/grub.cfg; then
|
if grep -q "configfile" ${EFI_HOME}/grub.cfg; then
|
||||||
|
|
Loading…
Reference in a new issue