Commit Graph

12 Commits

Author SHA1 Message Date
Simon Glass
d73ec0e2a8 cros_image_to_target handles test images, less verbose
added --test option
removed superfluous output (e.g. from dd) unless --verbose given
added --debug option for when you really want that output
added use of pv for a nice progress bar

TEST=(run script several times)
BUG=chromium-os:9563

Change-Id: Ib9d89ad5649b6cb6d5db35f66f6a3fda1ada0c53

Review URL: http://codereview.chromium.org/5176002
2010-11-23 15:30:50 -08:00
Don Garrett
132ff4320d cros_generate_upload_payload --patch_kernel should mount from the source
image read only to avoid unintended changes.

Change-Id: Id3a83786f2c1240a4401978c8cacffc0dcb9d66f

BUG=9073
TEST=Ran script with --patch_kernel, verified source image unmodified.
Ran ./image_to_live.sh to verify valid update was generated.

Review URL: http://codereview.chromium.org/4892002
2010-11-12 15:29:30 -08:00
Raja Aluri
c6e23cdb38 1. Not to assert inside chroot, if so desired.
2. Source shflags, if they are in the current directory

Change-Id: Id22e597a6fb71905f2d0ca5c4a1d94ce5a8a931f

Review URL: http://codereview.chromium.org/4177005
2010-11-02 15:55:57 -07:00
David James
db37501dbd Use delta_generator from chroot instead of from update_engine directory.
BUG=chromium-os:8185
TEST=Verify delta_generator is in path after emerging hard-host-depends.
     Generate image using delta_generator from chroot.

Change-Id: I03f6260960f472d4ebfc8305945da3cbfc67ff6e

Review URL: http://codereview.chromium.org/4170003
2010-10-26 16:42:04 -07:00
Darin Petkov
9bdd04b730 AU: Provide an option for forcing full or delta kernel update.
BUG=7705
TEST=tried generating updates with and without the option

Change-Id: I45fccece0aa37c92e63427ea8f86e208f24253eb

Review URL: http://codereview.chromium.org/3782005
2010-10-14 09:25:21 -07:00
Andrew de los Reyes
45c24df9a3 AU update generator script: support for new style full updates
A corresponding CL adds support for the delta generator to generate
new style full updates. This CL adds support for creating new style
full updates to the common update payload generator script.

This does not change the defaults, so generating a full update still uses
the old style.

BUG=7248
TEST=generated/applied full update on host

Review URL: http://codereview.chromium.org/3604011
2010-10-07 19:57:12 -07:00
Andrew de los Reyes
db0fa3f9ac AU Payload Generator: allow extracting kernel/rootfs for debugging
BUG=7427
TEST=verified old style full and delta updates work

Review URL: http://codereview.chromium.org/3582016
2010-10-06 16:54:16 -07:00
Darin Petkov
c90b71ed1f AU: Add a private_key option to cros_generate_update_payload.
BUG=5663
TEST=generated a delta payload

Change-Id: I62f2fae07152f67ecbf64d16948e6add1c6ba3db

Review URL: http://codereview.chromium.org/3548013
2010-10-05 10:44:06 -07:00
Andrew de los Reyes
396306edea AU: when generating payload, only delta generation needs to be in chroot
BUG=chromium-os:6517
TEST=generated full payload outside chroot

Review URL: http://codereview.chromium.org/3359014
2010-09-15 19:19:04 -07:00
Andrew de los Reyes
393266b499 AU: when generating payload, don't patch kernel by default
Normally, images are signed for USB boot and the HD boot patch is in
the stateful partition. Official image are resigned, and the kernel
partition needs no patch for HD boot. Since folks generating updates
generally don't need to patch, this CL turns off patching by default.

BUG=5975
TEST=Generated update payload

Review URL: http://codereview.chromium.org/3167035
2010-08-26 09:53:52 -07:00
Andrew de los Reyes
6faff36229 AU: make mk_memento_images not change rootfs
Also, enforce use of cros_generate_update_payload to generate images.

BUG=5771
TEST=Ran ./cros_generate_update_payload to make full update

Review URL: http://codereview.chromium.org/3135024
2010-08-16 15:24:04 -07:00
Andrew de los Reyes
b20bc30d4c generate_update_payload script: script to generate full/delta update payloads
This script wraps the old memento udpate generator and the new delta
updater. It will also generate new-style full updates soon, which are
full updates that use the delta-update format, when that code is ready.

BUG=5248
TEST=ran local script to do full/delta update

Review URL: http://codereview.chromium.org/2873082
2010-08-09 15:55:11 -07:00