Code update fix

PrepareForUpdate triggers a warm reset which reboots the BMC in 3
seconds. We hit the window here where the REST call to check the
flash status happens to be when the BMC boot is already in progress.
This change checks whether the boot status is updated correctly.

This situation could have been a failure in many code updates and
doesn't need to be here since if PrepareForUpdate failed we would
have aborted the code update process anyway. Removing it for good.

Resolves openbmc/openbmc#1301

Change-Id: I2ab7e8a1597226f2a30716ac172c68d3abb0e04b
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
1 file changed