Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow fallback to default loader when encountering errors on network boot #666

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -1262,8 +1262,9 @@ EFI_STATUS init_grub(EFI_HANDLE image_handle)
// default loader if we get a TFTP error or HTTP error.
if (!use_fb && (efi_status == EFI_INVALID_PARAMETER ||
efi_status == EFI_NOT_FOUND ||
// TODO: Add EFI_HTTP_ERROR when gnu-efi is updated to a version that includes it
// efi_status == EFI_HTTP_ERROR ||
// TODO: Change to EFI_HTTP_ERROR when gnu-efi is updated to a version that includes it
// I already get error 35 on my test systems, even with this build of shim.
efi_status == EFIERR(35) ||
nathan-omeara marked this conversation as resolved.
Show resolved Hide resolved
efi_status == EFI_TFTP_ERROR)) {
console_print(
L"start_image() returned %r, falling back to default loader\n",
Expand Down