From 61f0794ad5a1d4f8d067e753a4f2f3ae656b6d8e Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Sun, 27 Apr 2025 21:49:19 +0200 Subject: grub2: Use `menu_auto_hide=1` to match anaconda menu_auto_hide=1 is required for the boot_success provided by Fedora's grub2 package. This will fall back to the previous kernel and show the usually hidden grub menu when booting fails. This makes it unnecessary to override the timeout_style and using a reduced timeout of 1 second for disk images. --- config.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.sh') diff --git a/config.sh b/config.sh index a5f2309..9b8c248 100755 --- a/config.sh +++ b/config.sh @@ -41,6 +41,10 @@ if [[ "$kiwi_profiles" != *"Container"* ]] && [[ "$kiwi_profiles" != *"FEX"* ]] echo "GRUB_DISABLE_SUBMENU=true" >> /etc/default/grub ## Disable recovery entries to match Fedora echo "GRUB_DISABLE_RECOVERY=true" >> /etc/default/grub + ## Write `menu_auto_hide=1` into grubenv to match Fedora anaconda installs + if [["$kiwi_profiles" != *"Server"* ]]; then + grub2-editenv /boot/grub2/grubenv set menu_auto_hide=1 + fi fi #====================================== -- cgit v1.3.1+13