Skip to content

Commit

Permalink
MokManager: removed Locate graphic output protocol fail error message
Browse files Browse the repository at this point in the history
On some platform, like GCP or OVMF which does NOT provide
EFI_GRAPHICS_OUTPUT_PROTOCOL when no display device (or the display device
be disabled). It causes that the "Error: Locate graphic output protocol
fail: (0xE) Not Found." always be showed on console when we enroll MOK
through MokManager. The message box blocked the process of enrolling
MOK and scared user. The error message is introduced by 55163bc since
15.2. This patch removed the error message.

Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
  • Loading branch information
joeyli committed Jan 20, 2022
1 parent d0df930 commit 0c5c7ee
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,6 @@ console_mode_handle(VOID)

efi_status = BS->LocateProtocol(&gop_guid, NULL, (void **)&gop);
if (EFI_ERROR(efi_status)) {
console_error(L"Locate graphic output protocol fail", efi_status);
return;
}

Expand Down

0 comments on commit 0c5c7ee

Please sign in to comment.