mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-13 06:12:43 +00:00
shim: check for EFI\BOOT\BOOT${ARCH}.EFI as well as the leading \ version
I found a machine whose BDS gives us relative paths, yay! The rest of the code still works without that leading slash, so just make it one more item we let through our StrnCaseCmp() filter. Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
4794822464
commit
edeb313e6e
4
shim.c
4
shim.c
@ -1290,7 +1290,9 @@ should_use_fallback(EFI_HANDLE image_handle)
|
||||
* L"\\EFI\\BOOT\\/BOOTX64.EFI". So just handle that here...
|
||||
*/
|
||||
if (StrnCaseCmp(bootpath, L"\\EFI\\BOOT\\BOOT", 14) &&
|
||||
StrnCaseCmp(bootpath, L"\\EFI\\BOOT\\/BOOT", 15))
|
||||
StrnCaseCmp(bootpath, L"\\EFI\\BOOT\\/BOOT", 15) &&
|
||||
StrnCaseCmp(bootpath, L"EFI\\BOOT\\BOOT", 13) &&
|
||||
StrnCaseCmp(bootpath, L"EFI\\BOOT\\/BOOT", 14))
|
||||
goto error;
|
||||
|
||||
pathlen = StrLen(bootpath);
|
||||
|
Loading…
Reference in New Issue
Block a user