commit | 48dd2aa3c690be7d3f46f7c20917ff05e644d9bc | [log] [tgz] |
---|---|---|
author | Daniel Verkamp <dverkamp@chromium.org> | Fri Aug 30 14:56:25 2019 -0700 |
committer | chrome-bot <chrome-bot@chromium.org> | Tue Sep 10 13:01:16 2019 -0700 |
tree | 9adc1587f8bf8298e21f73ce8fd506a5d1d2305d | |
parent | 360620728c8a4b01044a15400e32adc7df627721 [diff] |
termina_build_image: size image based on source Rather than hard-coding a maximum 400 MB image size, which will need to be adjusted later, use 120% the size of the source directory as a starting point. The image will still be shrunk to the minimum by resize2fs before it is finalized. This is equivalent to https://crrev.com/c/1544864 from the bash version of this script, except that this uses 120% as the heuristic instead of 110%; 110% was failing for smaller images (resize2fs refuses to shrink them and exits with an error). BUG=chromium:999698 TEST=termina_build_image.py chromiumos_test_image.bin /tmp/termina Change-Id: I6260f60686a4f122933c324f3ce95d062d18d7f5 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1779501 Tested-by: kokoro <noreply+kokoro@google.com> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Stephen Barber <smbarber@chromium.org>
These are the guest packages for setting up a container to integrate with Chrome OS. This includes build scripts that are run in Google's internal continuous integration service.
The guest packages can be built with Bazel. The CrOS milestone to target and release name (stretch, buster, etc.) are required.
bazel build //... --action_env="MILESTONE=74" --action_env="RELEASE=buster"