diff options
| author | Jan Setje-Eilers <jan.setjeeilers@oracle.com> | 2023-12-06 15:43:32 -0800 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2024-01-22 14:17:20 -0500 |
| commit | c46c975591b99a4c7374b3f14bcd500f316d0b73 (patch) | |
| tree | 436a15dc4a8ff02ab5c34d9d0598ae0dd7b84cb6 /netboot.c | |
| parent | 13abd9f51b285db7eb46bf375cae623bf1153404 (diff) | |
| download | efi-boot-shim-c46c975591b99a4c7374b3f14bcd500f316d0b73.tar.gz efi-boot-shim-c46c975591b99a4c7374b3f14bcd500f316d0b73.zip | |
Suppress "Failed to open <..>\revocations.efi" when file does not exist
Attempting to call loadimage on revocations.efi when it isn't present
should results in error messages being printed to the console on at
least some firmware:
Failed to open \EFI\distro\revocations.efi - Not Found
Failed to load image ...: Not Found
Of course this is going to be the normal case on nearly all systems, at
least to begin with. Since we are about to loop through the directory
entries anyway, we can just make two passes, first looking for
revocations.efi and then looking for shim_certificate.efi. This will
still ensure that any revocations in revocations.efi are picked up
before shim_certificate.efi is loaded without resulting in any noise on
the console.
Signed-off-by: Jan Setje-Eilers <Jan.SetjeEilers@oracle.com>
Diffstat (limited to 'netboot.c')
0 files changed, 0 insertions, 0 deletions
