cros_generate_update_payload: Use patched kernel A if kernel B is empty.

When generating a delta payload, the source image may not have a normally
signed kernel in slot B if it's older. If that's the case, use the kernel in
slot A and patch it with the vblock from the stateful partition.

BUG=chromium:417072
TEST=Tryjob, manual testing.

Change-Id: I047fc331f7bbbc08bb8e6024531d6473bb54aee6
Reviewed-on: https://chromium-review.googlesource.com/219573
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
1 file changed