aboutsummaryrefslogtreecommitdiff
diff options
from:
to:
context:
space:
mode:
authorGravatar Neal Gompa <ngompa@fedoraproject.org> 2025-12-13 13:46:49 -0500
committerGravatar Neal Gompa <ngompa@fedoraproject.org> 2025-12-13 13:46:49 -0500
commita1c896d08ad7e95a9570b48730c9dbacd677cd2b (patch)
tree07852d913d64f52f674f7ddf648db37e6439d1fb
parenteef6b9ffb4efcad73f10516bc58467fd2a8df10d (diff)
downloadkiwi-descriptions-a1c896d08ad7e95a9570b48730c9dbacd677cd2b.tar.gz
kiwi-descriptions-a1c896d08ad7e95a9570b48730c9dbacd677cd2b.zip
config.sh: Fix grub2-editenv snippet to only run on non-Server/Cloud disks
This is only needed for disk images that aren't for cloud environments or server workloads.
-rwxr-xr-xconfig.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/config.sh b/config.sh
index 1079bce..ec21db4 100755
--- a/config.sh
+++ b/config.sh
@@ -41,10 +41,12 @@ 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
- ## Set boot_indeterminate to avoid displaying the grub menu on first boot
- if [[ "$kiwi_profiles" != *"Server"* ]]; then
- grub2-editenv /boot/grub2/grubenv set menu_auto_hide=1 boot_indeterminate=1
+ if [[ "$kiwi_profiles" == *"Disk"* ]]; then
+ ## Write `menu_auto_hide=1` into grubenv to match Fedora anaconda installs
+ ## Set boot_indeterminate to avoid displaying the grub menu on first boot
+ if [[ "$kiwi_profiles" != *"Server"* ]] || [[ "$kiwi_profiles" != *"Cloud"* ]]; then
+ grub2-editenv /boot/grub2/grubenv set menu_auto_hide=1 boot_indeterminate=1
+ fi
fi
fi