Prevent erroneous update of BP1 from being retried on BP0
It was noticed that, if there is an error updating a redundant component on BP1, it gets retried on BP0 This change prevents that retry from happening as identical boot partitions are desired Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
This commit is contained in:
parent
0a19cd4842
commit
876f68fa4f
|
@ -1479,7 +1479,8 @@ InitFirmwareUpdate (
|
||||||
// Update firmware update status of the component in reserved region
|
// Update firmware update status of the component in reserved region
|
||||||
//
|
//
|
||||||
if ((IsRedundantComponent(ImgHdr->UpdateHardwareInstance) && FwPolicy.Fields.SwitchtoBackupPart == 0x0) ||
|
if ((IsRedundantComponent(ImgHdr->UpdateHardwareInstance) && FwPolicy.Fields.SwitchtoBackupPart == 0x0) ||
|
||||||
!IsRedundantComponent(ImgHdr->UpdateHardwareInstance)) {
|
!IsRedundantComponent(ImgHdr->UpdateHardwareInstance) ||
|
||||||
|
EFI_ERROR(StatusPayloadUpdate)) {
|
||||||
Status = UpdateStatus (ImgHdr->UpdateHardwareInstance, (UINT16)ImgHdr->Version, StatusPayloadUpdate);
|
Status = UpdateStatus (ImgHdr->UpdateHardwareInstance, (UINT16)ImgHdr->Version, StatusPayloadUpdate);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "UpdateStatus failed! Status = %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "UpdateStatus failed! Status = %r\n", Status));
|
||||||
|
|
Loading…
Reference in New Issue