Use common partition handling code

This updates the script to use the common update_partition_table code,
shared with mod_image_for_recovery.

It does not, however, fix the missing support for changing the size of
the stateful partition. Once that is fixed, this script will
automatically start working again.

BUG=chromium-os:35003
TEST=script attempts to build images again
CQ-DEPEND=Ibcd5289389dcadf58ccf0678ecfb29095848b247

Change-Id: I4d2c328f77c70503b996b3faa79decc8f08b1bae
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/34681
Reviewed-by: Liam McLoughlin <lmcloughlin@chromium.org>
1 file changed