updater: Check correct firmware when updating with firmware B in active.

"is_equal_slot" function compares "current" and "target" firmware payloads,
while the real files we need to check when updating when firmware B in active
should be all "current" files.

BUG=chromium-os:39282
TEST=emerge-linkg chromeos-firmware-daisy; crossystem fwb_tries=1; reboot
     chromeos-firmwareupdate --mode=autoupdate --debug # see update action
     flashrom -w bios.bin -i RW_SECTION_B  # write garbage into B slot
     chromeos-firmwareupdate --mode=autoupdate --debug # see "retry in next boot"

Change-Id: I3bc1f517b08f8a413dd7825eb6686d65ef0ddb5a
Reviewed-on: https://gerrit.chromium.org/gerrit/44623
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@chromium.org>
2 files changed