From 38fb09e4a1ed8b54d69f65c9901bf940e154386b Mon Sep 17 00:00:00 2001 From: João Paulo Rechi Vita Date: Tue, 9 Mar 2021 14:07:49 -0800 Subject: fallback: Wait before chainloading in verbose mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently we wait half a second before resetting the system when running fallback in verbose mode. Lets wait the same amount of time before trying to chain-load the first boot entry as well, so we have a chance to see what is on screen. Signed-off-by: João Paulo Rechi Vita --- fallback.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fallback.c') diff --git a/fallback.c b/fallback.c index 15162b5e..4a7a8eea 100644 --- a/fallback.c +++ b/fallback.c @@ -941,6 +941,11 @@ try_start_first_option(EFI_HANDLE parent_image_handle) EFI_STATUS efi_status; EFI_HANDLE image_handle; + if (get_fallback_verbose()) { + console_print(L"Verbose enabled, sleeping for half a second\n"); + msleep(500000); + } + if (!first_new_option) { return EFI_SUCCESS; } -- cgit v1.2.3