mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-24 16:49:35 +00:00
Don't print that fallback isn't found in should_use_fallback()
The call can simply fail if it isn't found - which will be the case on removeable install media. Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
928886457e
commit
b32a3ce14c
7
shim.c
7
shim.c
@ -951,7 +951,12 @@ should_use_fallback(EFI_HANDLE image_handle)
|
||||
rc = uefi_call_wrapper(vh->Open, 5, vh, &fh, L"\\EFI\\BOOT" FALLBACK,
|
||||
EFI_FILE_MODE_READ, 0);
|
||||
if (EFI_ERROR(rc)) {
|
||||
Print(L"Could not open \"\\EFI\\BOOT%s\": %d\n", FALLBACK, rc);
|
||||
/* Do not print the error here - this is an acceptable case
|
||||
* for removable media, where we genuinely don't want
|
||||
* fallback.efi to exist.
|
||||
* Print(L"Could not open \"\\EFI\\BOOT%s\": %d\n", FALLBACK,
|
||||
* rc);
|
||||
*/
|
||||
uefi_call_wrapper(vh->Close, 1, vh);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user