diff options
| author | 2025-04-30 17:44:33 -0400 | |
|---|---|---|
| committer | 2025-04-30 17:44:33 -0400 | |
| commit | c3e509d22eb177a1bbf99c4a1e73669048598bfc (patch) | |
| tree | 973eed7f0aa71c4636cdb58603ffa2a51b785994 | |
| parent | 66b87054e8155204fcaae4196f88592a07ee9457 (diff) | |
| download | kiwi-descriptions-c3e509d22eb177a1bbf99c4a1e73669048598bfc.tar.gz kiwi-descriptions-c3e509d22eb177a1bbf99c4a1e73669048598bfc.zip | |
config.sh: grub2: Set boot_success=1 for variants using auto-hiding menus
This ensures that the menu does not pop up for the first boot on
variants that leverage boot success tracking.
| -rwxr-xr-x | config.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -42,8 +42,9 @@ if [[ "$kiwi_profiles" != *"Container"* ]] && [[ "$kiwi_profiles" != *"FEX"* ]] ## 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 + ## Set boot_success to avoid displaying the grub menu on first boot if [["$kiwi_profiles" != *"Server"* ]]; then - grub2-editenv /boot/grub2/grubenv set menu_auto_hide=1 + grub2-editenv /boot/grub2/grubenv set menu_auto_hide=1 boot_success=1 fi fi |