From d2f7016c2ed739ebdfe84150186b047731629d8a Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Mon, 9 Sep 2024 20:26:14 +0200 Subject: [PATCH] build_library/grub.cfg: Enable grub fallback behavior With secure boot a failed shim signature check will leave us stuck in grub. Enable automatic fallback in that case. --- build_library/grub.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build_library/grub.cfg b/build_library/grub.cfg index 39bf5107255..11743bbb8ff 100644 --- a/build_library/grub.cfg +++ b/build_library/grub.cfg @@ -9,6 +9,9 @@ insmod all_video # Default menuentry id and boot timeout set default="flatcar" +# Retry default boot entry - this will decrement the gpt tries counter and +# switch to previous entry when all attempts are exhausted. +set fallback="0 0 0" set timeout=1 # Default kernel args for root filesystem, console, and Flatcar.