Make grub timeout configurable and set to 0

There are situations where it is possible for grub to get stuck waiting
for user input, e.g. if no keyboard is connected or if there is any
other keypress during the grub menu countdown. Changing the timeout to 0
prevents this.

This is also made into a configurable parameter in case someone needs to
use a non-zero value for troubleshooting.

This only applies to the ephemeral ISO.

Change-Id: I34848b7fc56c5698fd3c408bf82ace53e5366d13
This commit is contained in:
Anderson, Craig (ca846m) 2021-11-01 12:08:22 -07:00
parent 942ca33a53
commit c5961decad
2 changed files with 2 additions and 1 deletions

View File

@ -4,3 +4,4 @@ root_image: build
mksquashfs_compression: lz4
mksquashfs_threads: "{{ ansible_processor_vcpus }}"
squashfs_timeout: 120
grub_menu_timeout: 0

View File

@ -3,7 +3,7 @@ search --set=root --file /AIRSHIP
insmod all_video
set default="0"
set timeout=1
set timeout={{ grub_menu_timeout }}
menuentry "Airship Ephemeral" {
linux /boot/vmlinuz boot=live quiet nomodeset overlay-size=70% systemd.unified_cgroup_hierarchy=0 ds=ConfigDrive console=ttyS0 console=tty0