mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-26 08:01:14 +02:00
When running outside chroot, we should use locate_cgpt + "$GPT" to invoke cgpt; otherwise it may be not in system PATH. For dealing with a true SSD image (over USB, for example) this CL also improved data writing speed from <2M/s to 8M/s+ (over USB). BUG=chromium-os:10531 TEST=./make_factory_package.sh \ --factory=../build/images/x86-mario/latest/chromiumos_factory_image.bin \ --release=../build/images/x86-mario/latest//chromiumos_image.bin \ --diskimg=/dev/sdb Also tested: --diskimg=blah # local file (chroot) --diskimg=/dev/sdd (chroot) --diskimg=blah Change-Id: I647d97fe388f5b6a6223fa8cacfecdf00265f60c Review URL: http://codereview.chromium.org/6261003