futility: updater: prevent unexpected update for the RW_LEGACY section

When updating the legacy section, we have to check the existence of
'cros_allow_auto_update' in both 'from' and 'to' images, and only update
if they both have the correct tag file.

BUG=b:215175246,chromium:1169544
TEST=make; build and run test
BRANCH=None

Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Change-Id: I81f62f42cf9a6f6f1931e05cd07131b569ad0cb0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3404063
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
1 file changed