summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Paulo Rechi Vita <jprvita@endlessos.org>2021-03-09 14:07:49 -0800
committerPeter Jones <pjones@redhat.com>2021-03-10 15:59:07 -0500
commit38fb09e4a1ed8b54d69f65c9901bf940e154386b (patch)
treeb78bb62dc24de7915269392b30d156092da652f0
parent913f82b23dd5219b6b3f91be4ff15ff75100a94a (diff)
downloadefi-boot-shim-38fb09e4a1ed8b54d69f65c9901bf940e154386b.tar.gz
efi-boot-shim-38fb09e4a1ed8b54d69f65c9901bf940e154386b.zip
fallback: Wait before chainloading in verbose mode
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 <jprvita@endlessos.org>
-rw-r--r--fallback.c5
1 files changed, 5 insertions, 0 deletions
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;
}