History log of /system/update_engine/sample_images/generate_images.sh
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0d29854cf5bb05a22cf161b50052539aa420a36e 31-Mar-2016 Alex Deymo <deymo@google.com> Parse postinstall program progress updates.

In Android postinstall is expected to take a long time in common cases.
This patch allows the postinstall program to report back to the updater
a progress indication, which will then be forwarded to all the clients
listening. These progress updates are part of the FINALIZING status.

Bug: 27880754
TEST=Added unittests. Deployed an update to an edison-eng and post-install reported progress back with the postinstall_example.

Change-Id: I35f96b92f090219c54cca48d8ab07c54cf8b4ab1
/system/update_engine/sample_images/generate_images.sh
990c27b0df5bd77ca804479922a62ba0ee9266ba 16-Mar-2016 Sen Jiang <senj@google.com> Use pre-generated ext image instead of create it on the fly.

mkfs.ext3 is not available in target device, so we don't use it.
Also removed all usage of dd.
This fixes a UtilsTest and the first step of integration test, the rest is
still failing because bsdiff is missing.

Test: ./update_engine_unittests
Test: cros_workon_make update_engine --test
Bug: 26955860

Change-Id: Ic600bd6fab1d6839f38d5ef767fbffc5a35571a4
/system/update_engine/sample_images/generate_images.sh
d15c546ed794293d0a63770467a0f3c4c84c6214 10-Mar-2016 Alex Deymo <deymo@google.com> Implement susped, resume and cancel for the Postinstall action.

This patch sends SIGSTOP/SIGCONT to the running postinstall program to
suspend/resume the child process, and SIGKILL when cancelling it.

Bug: 27272144
TEST=Added unittest to check the signal being sent.

Change-Id: Iebe9bd34448ad1d0a5340c82e1fd839ff8c69dd2
/system/update_engine/sample_images/generate_images.sh
cbc2274c4160805bf726df872390112654816ca7 05-Mar-2016 Alex Deymo <deymo@google.com> Rework postinstall unittests to pass on Android.

Postinstall unittests were creating and mounting an image on each test
run. This patch adds several test scripts to one of the pre-generated
images and uses that image during postinstall testing instead.

To workaround problems with mount/umount of loop devices on Android,
this patch rewrites the `losetup` logic to make the appropriate
syscalls and create the loop device with mknod if it doesn't exists.

The tests require some extra SELinux policies to run in enforcing mode.

Bug: 26955860
TEST=Ran all Postinstall unittests.

Change-Id: I47a56b80b97596bc65ffe30cbc8118f05faff0ae
/system/update_engine/sample_images/generate_images.sh
a3553e42ce7255034044f364f72516b29417bbdc 05-Mar-2016 Alex Deymo <deymo@google.com> sample_images: Support sparse files.

The sample images are mostly sparse space. This patch stores those
files as sparse files in the .tar.bz2 files and simplifies the rules
to extract them directly onto the destination directory.

acp still doesn't support sparse files, so when these files get copied
to the /data partition, they won't be sparse files. Nevertheless, this
patch is still required.

Bug: 26955860
TEST=mmma showcommands system/update_engine; `du -hs` the intermediate files.

Change-Id: I24a2c1f7a28ee79cc545650e04705a22d7fc7cdb
/system/update_engine/sample_images/generate_images.sh
c90be63117cdad2622694b6f9ac2aec65fa80bf0 18-Feb-2016 Alex Deymo <deymo@google.com> Fix Ext2FilesystemTest unittests on Brillo.

The Ext2FilesystemTest tests use a set of pre-generated filesystems
stored in sample_images.tar.bz2 and attempt to parse those. This patch
installs the used filesystems in the same directory as the Chrome OS
test environment would generate those files, relative to the unittest
program executed: in a gen/ subdirectory.

Also, an empty filesystem that was previously created from the unittests
is now pre-generated.

The update_engine_unittests program now depends on those modules being
installed and those unittests pass.

Bug: 26955860
TEST=/data/nativetest/update_engine_unittests/update_engine_unittests --gtest_filter=Ext2FilesystemTest.*

Change-Id: I40082e328cec89a7ef4f06d3b8125a953b29efad
/system/update_engine/sample_images/generate_images.sh
aea4c1cea20dda7ae7e85fc8924a2d784f70d806 20-Aug-2015 Alex Deymo <deymo@google.com> Re-license update_engine to Apache2

This patch automatically replaced the license on all text files from
Chromium OS (BSD style) to AOSP (Apache2), keeping the original year as
a reference.

The license header was added to .gyp and .gypi files, the NOTICE was
replaced with a copy of the Apache2 license and MODULE_LICENSE_* file
was updated.

BUG=b/23084294
TEST=grep 'Chromium OS Authors' doesn't find anything.

Change-Id: Ie5083750755f5180a8a785b24fe67dbf9195cd10
/system/update_engine/sample_images/generate_images.sh
04ef2078a1c17733b363971394dacad5f5f5b524 13-Aug-2015 Alex Deymo <deymo@chromium.org> update_engine: Upload sample images for testing.

This patch includes the sample images as a compressed .tar.bz2 file in
the source code. The images are generated with the generate_images.sh
script, but the output is also included here. The script requires
root access to create, mount and populate the images with the different
files, which is not reliable enough to run in the builders. Instead,
the images are unpacked from tha .tar.bz2 file when building the
unittests.

These images are not expected to change frequently and the current size
of the .tar.bz2 file is about 3 kB.

BUG=chromium:503145
TEST=`FEATURES=test cros_workon_make update_engine` unpacks the files only when the .tar.bz2 is updated.
TEST=Unit tests still pass.

Change-Id: Ie2be2afdf7a11a7d04b0477767d00b1daa99f1b0
Reviewed-on: https://chromium-review.googlesource.com/292949
Trybot-Ready: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
/system/update_engine/sample_images/generate_images.sh