Fix "Failed to open random seed file" error message for arch linux

This commit is contained in:
longpanda 2021-08-04 18:53:09 +08:00
parent c83daa86b6
commit 659ac1cfe3
1 changed files with 10 additions and 0 deletions

View File

@ -1406,6 +1406,16 @@ STATIC EFI_STATUS EFIAPI ventoy_wrapper_file_open
debug("## ventoy_wrapper_file_open <%s> ", Name);
if ((Mode & EFI_FILE_MODE_WRITE) > 0 && StrCmp(Name, L"\\loader\\random-seed") == 0)
{
if (gDebugPrint)
{
debug("## ventoy_wrapper_file_open return NOT_FOUND for random-seed %lx", Mode);
sleep(3);
}
return EFI_NOT_FOUND;
}
Status = g_original_fopen(This, New, Name, Mode, Attributes);
if (EFI_ERROR(Status))
{