config.sh: Fix typo and use correct vars for setting up GRUB Hidden Menu
The conditional was getting skipped due to a missing whitespace and the editenv command was never getting run. Additionally, we should be using the boot_indeterminate flag for first boot instead of boot_success.
This commit is contained in:
@@ -42,9 +42,9 @@ if [[ "$kiwi_profiles" != *"Container"* ]] && [[ "$kiwi_profiles" != *"FEX"* ]]
|
|||||||
## Disable recovery entries to match Fedora
|
## Disable recovery entries to match Fedora
|
||||||
echo "GRUB_DISABLE_RECOVERY=true" >> /etc/default/grub
|
echo "GRUB_DISABLE_RECOVERY=true" >> /etc/default/grub
|
||||||
## Write `menu_auto_hide=1` into grubenv to match Fedora anaconda installs
|
## Write `menu_auto_hide=1` into grubenv to match Fedora anaconda installs
|
||||||
## Set boot_success to avoid displaying the grub menu on first boot
|
## Set boot_indeterminate to avoid displaying the grub menu on first boot
|
||||||
if [["$kiwi_profiles" != *"Server"* ]]; then
|
if [[ "$kiwi_profiles" != *"Server"* ]]; then
|
||||||
grub2-editenv /boot/grub2/grubenv set menu_auto_hide=1 boot_success=1
|
grub2-editenv /boot/grub2/grubenv set menu_auto_hide=1 boot_indeterminate=1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user