flatcar-scripts/lib
Hung-Te Lin d7a3503914 crosutils/make_universal_factory_shim.sh: allow creating images in arbitrary layout
We need more flexible image creation tool for various layout, like "RMA with
multiple release images" which needs 4 images (install, test, release A,
release B).

To make the creation of image more flexible, this CL changes
make_universal_factory_shim to using a "layout file" that can describe any disk
image format we want.

Image creation speed is also improved by aligning partition offsets and
restricting oflag=dsync applied only when being used for block devices so that
make_universal_factory_shim (outputs to a normal temporary file) becomes faster
by utilizing system cache.

For a system with every images already cached:
 - Time for building 3 in 1 factory instal shim:
   Before = 8 seconds, After = 5 seconds.
 - Time for full RMA shim creation:
   Before = 1m25s, After = 40-50 seconds.

BUG=chrome-os-partner:4108
TEST=./make_universal_factory_shim.sh image1 image2 image3 image4
     # boots correctly after being imaged to SD card.
     ./make_factory_package.sh --usbimg RMA ....
     # RMA image can install images and works correctly

Change-Id: I645196d6d6e0a24d3dfa4c413a338279df4c0d5b
Reviewed-on: http://gerrit.chromium.org/gerrit/6893
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
2011-08-31 23:37:55 -07:00
..
shflags Move shflags into crosutils.git 2010-07-13 15:24:54 -07:00
cros_build_lib_unittest.py Add better support for getting the path to crosutils. 2011-03-30 11:22:17 -07:00
cros_build_lib.py crosutils: globally replace enter_chroot with cros_sdk 2011-08-19 15:35:32 -07:00
cros_image_common.sh crosutils/make_universal_factory_shim.sh: allow creating images in arbitrary layout 2011-08-31 23:37:55 -07:00
cros_vm_constants.sh Increase statefulfs_size to accomadate larger stateful partitions. 2010-10-18 10:26:16 -07:00
cros_vm_lib.sh Fix bug where we crash if our non -9 kill fails. 2011-08-14 17:47:35 -07:00