flatcar-scripts/build_library
Kees Cook 9ea1347ed9 update_partition_table: dynamically handle resize
When changing the size of the stateful partition, we must be able to
operate on any image, with any arrangement of partitions. The static
templates cannot be used because we don't know what we're starting with.
As such, this change makes the update function walk the list of
partitions, duplicating all their details, and moves any located after
stateful by the change in size, and copies in the new stateful contents.

BUG=chromium-os:37080
TEST=link build and decryption recovery tested

Change-Id: I1131dd8ee91e5db2556bdf8f7ca12b08f35da32b
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/39424
Reviewed-by: Will Drewry <wad@chromium.org>
Reviewed-by: Liam McLoughlin <lmcloughlin@chromium.org>
Tested-by: Liam McLoughlin <lmcloughlin@chromium.org>
2012-12-10 13:56:46 -08:00
..
base_image_util.sh Revert "build_image: filter out unused glibc files" 2012-12-04 17:03:43 -08:00
board_options.sh Remove --build_root from all scripts except mod_image_for_pyauto.sh. 2012-03-15 18:55:26 -07:00
build_common.sh Simplify and add flexibility to image creation process 2012-09-23 10:05:12 -07:00
build_image_util.sh Fix for factory build of bootcache 2012-12-03 16:13:15 -08:00
cgpt_shell.sh cgpt_shell: avoid bash 2012-09-24 12:18:42 -07:00
cgpt.py Add adjust_part flag 2012-10-30 04:44:53 -07:00
check_deps check_deps: Find libraries using RUNPATH too, not just RPATH 2012-12-07 15:22:17 -08:00
chromeos_blacklist Isolate scripts and files that are used only in build_image 2011-07-27 08:46:01 -07:00
create_legacy_bootloader_templates.sh Build script changes needed to enable bootcache 2012-11-28 16:19:40 -08:00
dev_image_util.sh Revert "build_image: filter out unused glibc files" 2012-12-04 17:03:43 -08:00
disk_layout_util.sh update_partition_table: dynamically handle resize 2012-12-10 13:56:46 -08:00
generate_au_zip.py Fix delta generation to work with updated glibc version. 2012-07-15 16:23:23 -07:00
legacy_disk_layout.json Added space to root partitions for bootcache 2012-11-13 14:04:01 -08:00
mount_gpt_util.sh Create a function library for mounting/unmounting images. 2011-08-23 13:39:03 -07:00
test_build_root test_build_root: convert to arrays 2012-08-14 13:38:33 -07:00
test_image_content.sh build: Test /etc/localtime symlink in built images. 2012-03-30 13:01:26 -07:00
test_image_util.sh Simplify and add flexibility to image creation process 2012-09-23 10:05:12 -07:00