image build and composition scripts for Flatcar Container Linux
Go to file
Hung-Te Lin 5c67986738 make_factory_pack: auto detect release image type (--detect_release_image)
The release image parameter must be an image signed for SSD booting. This CL
adds detection code and allows on-the-fly conversion from recovery to SSD image.

BUG=chromium-os:15050
TEST=./make_factory_package --release RECOVERY --factory FACTORY # success
     # Seeing: INFO    : Image type is [recovery]:...
     ./make_factory_package --release USB --factory FACTORY # success
     # Seeing:  Image type is [usb]:...
     ./make_factory_package --release SSD --factory FACTORY # success
     # Seeing:  Image type is [ssd]:...
     ./make_factory_package --release GARBAGE --factory FACTORY # failure
     # Seeing:  Image type is [invalid]:...
     ./make_factory_package --release GARBAGE --factory FACTORY --nodetect_release_image # success
     # No image type messages

Change-Id: I8530b3f58574a4298b4d6d904a12bb92636c7365
Reviewed-on: http://gerrit.chromium.org/gerrit/5965
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
2011-08-15 21:40:55 -07:00
bin Skip filling in kernel partition until cros_make_image_bootable 2011-08-01 16:09:00 -07:00
build_library Convert build_library/test_image to a shell library. 2011-08-15 14:23:10 -07:00
chroot_version_hooks.d Remove mobile-broadband-provider-info package, which has been replaced 2011-07-12 15:37:19 -07:00
lib make_factory_pack: auto detect release image type (--detect_release_image) 2011-08-15 21:40:55 -07:00
mod_for_factory_scripts mod_for_factory: remove 500populateQualDbs 2011-06-30 19:04:38 -07:00
mod_for_test_scripts Make nssdb creation in /etc/fake_root_ca work on ARM 2011-08-08 21:14:05 -07:00
sdk_lib crosutils: move enter_chroot.sh to sdk_lib, code unchanged 2011-08-12 16:35:07 -07:00
.gitignore ignore: tmp files and .pyc files 2010-09-09 14:25:33 -07:00
archive_build.sh Fix race condition by using different symlinks for factory images. 2011-08-11 12:44:02 -07:00
archive_hwqual Use pbzip2 in archive_build, if it is available. 2011-08-06 18:58:44 -07:00
bash_completion cros_workon: fix comments/messages to be consistent with new location 2011-02-05 11:42:19 -08:00
build_image Convert build_library/test_image to a shell library. 2011-08-15 14:23:10 -07:00
build_kernel_image.sh Obsolete --crosbug12352_arm_kernel_signing flag 2011-07-26 21:40:13 -07:00
build_packages Add symlinks to new build scripts. This obviates the need to run setup_source_tree.sh. 2010-02-19 14:54:50 -08:00
call_autoserv.py Added HWQual utility script - call_script.py 2011-01-27 16:19:55 -08:00
check_control_files.sh Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
chromeos-common.sh Switch to GPT-format disk images. 2010-03-30 14:17:34 -07:00
clean_loopback_devices Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
common.sh common.sh: add quotes where appropriate 2011-08-12 08:16:14 -07:00
cros_deps_diff add cros_deps_diff tool that creates dependency graph diffs 2010-07-08 14:52:37 -07:00
cros_download_latest_image Update cros_download_latest_image to work again. 2011-07-29 15:23:49 -07:00
cros_generate_breakpad_symbols Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
cros_generate_deps_graphs Refactor the dot graph generation out of cros_generate_deps_graphs 2010-07-01 13:41:25 -07:00
cros_run_unit_tests Remove testing utilities and fix symlinks. 2011-03-24 16:06:59 -07:00
cros_show_stacks Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
dot_helper.py Refactor the dot graph generation out of cros_generate_deps_graphs 2010-07-01 13:41:25 -07:00
enable_localaccount.sh This starts to fix the scripts so that they load from /usr/lib/crosutils 2011-02-01 22:04:49 -08:00
enter_chroot.sh crosutils: move enter_chroot.sh to sdk_lib, code unchanged 2011-08-12 16:35:07 -07:00
fixup_image_for_qemu.py Use 1280x1024 resolution when running ChromeOS under qemu. 2011-03-29 06:58:17 -07:00
generate_test_report Remove testing utilities and fix symlinks. 2011-03-24 16:06:59 -07:00
get_latest_image.sh Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
get_package_list Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
image_to_live.sh Move some dev scripts into dev/host. 2011-03-23 14:34:53 -07:00
image_to_usb.sh Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
image_to_vm.sh Resize image without using a loop device to avoid sync. 2011-08-15 17:18:05 -07:00
make_chroot Add symlinks to new build scripts. This obviates the need to run setup_source_tree.sh. 2010-02-19 14:54:50 -08:00
make_developer_script_runner.sh Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
make_factory_package.sh make_factory_pack: auto detect release image type (--detect_release_image) 2011-08-15 21:40:55 -07:00
make_netboot.sh Fix race condition by using different symlinks for factory images. 2011-08-11 12:44:02 -07:00
make_universal_factory_shim.sh make_universal_factory_shim: support "-m" to assign master (base) image 2011-07-14 19:03:34 -07:00
mk_memento_images.sh crosutils: change mk_memento_images.sh to support arbitrary input source 2011-08-14 22:56:48 -07:00
mod_image_for_recovery.sh Extract some common code for sharing with build_image, et al. 2011-08-11 09:51:31 -07:00
mod_image_for_test.sh Ensure builders work with cached output image. 2011-08-11 21:28:34 -07:00
mod_test_image_for_pyauto.sh Use vboot for signing 2011-08-08 15:19:34 -07:00
mount_gpt_image.sh Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
remote_access.sh remote_access.sh: fix learn_arch to return x86 instead of i686 2011-05-31 14:31:49 -07:00
run_chroot_version_hooks Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
run_remote_tests.sh Remove testing utilities and fix symlinks. 2011-03-24 16:06:59 -07:00
serve_factory_packages.py Run devserver with --factory_config. Add --start_devserver flag. 2010-11-04 12:56:02 -07:00
set_shared_user_password.sh Cleanup set_shared_user_password related transitional code. 2011-04-29 10:24:26 -07:00
setup_board Add symlinks to new build scripts. This obviates the need to run setup_source_tree.sh. 2010-02-19 14:54:50 -08:00
sha256_partitions.sh sha256_partitions: script to easily sha256 partitions of a .bin file. 2011-08-11 10:00:12 -07:00
ssh_test.sh Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
start_devserver Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
sysroot_wrapper Add symlinks to new build scripts. This obviates the need to run setup_source_tree.sh. 2010-02-19 14:54:50 -08:00
update_bootloaders.sh update_bootloaders: use uuids for legacy boot. 2011-08-11 13:57:49 -07:00
update_chroot Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
update_kernel.sh Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
upload_symbols Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00
verify_rootfs_chksum.sh Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00