mod_image_for_recovery: fix mkfs error
mod_image_for_recovery.sh minimizes stateful partition by sending an
'--adjust_part=<new_stateful_size>' into build_gpt_image. However, the
--adjust_part does not handled correctly in many part of the script,
especially inside mk_fs().
Fix this bug by skipping the redundant mk_fs() call.
BUG=chromium:1114569
TEST=mod_image_for_recovery.sh -b sarien \
--image chromiumos_test_image.bin \
--kernel_image recovery_vmlinuz.image
Change-Id: Iab086f782ed3060aa85e16b8fdea5f4ae31f5397
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/2346083
Tested-by: Ting Shen <phoenixshen@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
2 files changed