Retry BMC image file over network via SCP

Post SCP check if the file size is 32M, if not delete the incomplete
/tmp/flashimg file from BMC and SCP again. If this fails the update
manager would anyway flag "Unpack Error". This is just a way to reduce
the SCP timedout failure due to flaky network.

Resolves  openbmc/openbmc-test-automation#98
Resolves  openbmc/openbmc#1946

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