1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-21 18:03:41 +03:00

boot: Do not warn if an initializing driver returns EFI_ABORTED

Fixes: #21965
(cherry picked from commit 8fb16fee96a1563738e7fa784fc45d152b8c2694)
This commit is contained in:
Jan Janssen 2022-01-02 14:37:32 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent c563e3ef77
commit 1c4c566d86

View File

@ -43,8 +43,13 @@ static EFI_STATUS load_one_driver(
return log_error_status_stall(EFI_INVALID_PARAMETER, L"Image %s is not a driver, refusing: %r", fname);
err = BS->StartImage(image, NULL, NULL);
if (EFI_ERROR(err))
return log_error_status_stall(err, L"Failed to start image %s: %r", fname, err);
if (EFI_ERROR(err)) {
/* EFI_ABORTED signals an initializing driver. It uses this error code on success
* so that it is unloaded after. */
if (err != EFI_ABORTED)
log_error_stall(L"Failed to start image %s: %r", fname, err);
return err;
}
TAKE_PTR(image);
return EFI_SUCCESS;