Always show the MokManager UI

If someone explicitly starts MokManager then we want to show the UI
This commit is contained in:
Matthew Garrett 2012-10-06 17:22:33 -04:00
parent 8cf182af8b
commit 27a8fc9fd1

View File

@ -1029,13 +1029,8 @@ static EFI_STATUS check_mok_request(EFI_HANDLE image_handle)
MokNew = LibGetVariableAndSize(L"MokNew", &shim_lock_guid, &MokNewSize);
if (MokNew == NULL || MokNewSize < sizeof(UINT32)) {
goto error;
}
enter_mok_menu(image_handle, MokNew);
error:
if (MokNew) {
if (LibDeleteVariable(L"MokNew", &shim_lock_guid) != EFI_SUCCESS) {
Print(L"Failed to delete MokNew\n");