From 611af6008a3b76c0e1686758442b0afd5c56a6f4 Mon Sep 17 00:00:00 2001 From: Carlos Goncalves Date: Wed, 12 Aug 2020 13:00:24 +0200 Subject: [PATCH] Set Grub timeout to 0 for fast boot times The default Grub timeout is 5 set by the bootloader element. Setting timeout to zero helps reduce boot times. Change-Id: I82d877a41d7339891a388e26d149fd65cb61c727 --- diskimage-create/diskimage-create.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/diskimage-create/diskimage-create.sh b/diskimage-create/diskimage-create.sh index 67ece9f7fe..6a36226f17 100755 --- a/diskimage-create/diskimage-create.sh +++ b/diskimage-create/diskimage-create.sh @@ -477,6 +477,9 @@ if [ "$DIB_LOCAL_ELEMENTS" ]; then AMP_element_sequence="$AMP_element_sequence $DIB_LOCAL_ELEMENTS" fi +# Set Grub timeout to 0 (no timeout) for fast boot times +export DIB_GRUB_TIMEOUT=${DIB_GRUB_TIMEOUT:-0} + # Build the image export DIB_CLOUD_INIT_DATASOURCES=$CLOUD_INIT_DATASOURCES