aboutsummaryrefslogtreecommitdiff
path: root/config.sh
diff options
from:
to:
context:
space:
mode:
authorGravatar Janne Grunau <janne-fdr@jannau.net> 2025-04-27 21:49:19 +0200
committerGravatar Janne Grunau <janne-fdr@jannau.net> 2025-04-27 22:04:22 +0200
commit61f0794ad5a1d4f8d067e753a4f2f3ae656b6d8e (patch)
tree934176acc37fb72113310b9937ffe79c432d0cdc /config.sh
parent13c5d722ad8a6141ad58c4c0d19e4fb7ce63265c (diff)
downloadkiwi-descriptions-61f0794ad5a1d4f8d067e753a4f2f3ae656b6d8e.tar.gz
kiwi-descriptions-61f0794ad5a1d4f8d067e753a4f2f3ae656b6d8e.zip
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.
Diffstat (limited to 'config.sh')
-rwxr-xr-xconfig.sh4
1 files changed, 4 insertions, 0 deletions
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
#======================================