From a69e8548b360e288b3e534cfbc201a5fb410e885 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 8 Sep 2023 23:48:06 +0100 Subject: set grub.cfg timeout to 5s (10 on some boards) target.cfg can now specify e.g. grub_timeout=20 this would then be inserted as timeout.cfg in cbfs, containing the instruction: set timeout=20 HP laptops need a bit of extra time, due to the delay caused by the EC bug workaround deployed in GRUB desktops in general need extra time. this too is set to 10s, like the HP laptops. only insert timeout.cfg if actually needed (declared in target.cfg), otherwise grub.cfg will default to 5s Signed-off-by: Leah Rowe --- config/grub/config/grub.cfg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config/grub') diff --git a/config/grub/config/grub.cfg b/config/grub/config/grub.cfg index 586eb145..64fe9b3d 100644 --- a/config/grub/config/grub.cfg +++ b/config/grub/config/grub.cfg @@ -26,7 +26,11 @@ elif [ -f (cbfsdisk)/background.jpg ]; then fi set default="0" -set timeout=30 +if [ -f (cbfsdisk)/timeout.cfg ]; then + source (cbfsdisk)/timeout.cfg +else + set timeout=5 +fi set pager=1 set grub_scan_disk="both" if [ -f (cbfsdisk)/scan.cfg ]; then -- cgit v1.2.1