diff options
| author | Peter Jones <pjones@redhat.com> | 2013-06-20 12:41:14 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-09-16 09:27:08 -0400 |
| commit | 41e18d4334d84cb5f7c7dd044c9afaf24a0a6538 (patch) | |
| tree | 0851d448f0fc8bef9904f70d2de61411e4962073 /shim.c | |
| parent | 23002e8e5c03800845afae8aaa7e42770c3e5d17 (diff) | |
| download | efi-boot-shim-41e18d4334d84cb5f7c7dd044c9afaf24a0a6538.tar.gz efi-boot-shim-41e18d4334d84cb5f7c7dd044c9afaf24a0a6538.zip | |
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>
Diffstat (limited to 'shim.c')
| -rw-r--r-- | shim.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; } |
