Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
659ac1cf
Commit
659ac1cf
authored
Aug 04, 2021
by
longpanda
Browse files
Fix "Failed to open random seed file" error message for arch linux
parent
c83daa86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
EDK2/edk2_mod/edk2-edk2-stable201911/MdeModulePkg/Application/Ventoy/VentoyProtocol.c
...le201911/MdeModulePkg/Application/Ventoy/VentoyProtocol.c
+10
-0
No files found.
EDK2/edk2_mod/edk2-edk2-stable201911/MdeModulePkg/Application/Ventoy/VentoyProtocol.c
View file @
659ac1cf
...
@@ -1406,6 +1406,16 @@ STATIC EFI_STATUS EFIAPI ventoy_wrapper_file_open
...
@@ -1406,6 +1406,16 @@ STATIC EFI_STATUS EFIAPI ventoy_wrapper_file_open
debug
(
"## ventoy_wrapper_file_open <%s> "
,
Name
);
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
);
Status
=
g_original_fopen
(
This
,
New
,
Name
,
Mode
,
Attributes
);
if
(
EFI_ERROR
(
Status
))
if
(
EFI_ERROR
(
Status
))
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment