image build and composition scripts for Flatcar Container Linux
Go to file
Gilad Arnold 0534a6ec41 image_to_usb.sh: detect and allow to select between candidate images.
The script does not assume a single source image (chromiumos_image.bin)
but detects which images of a list of candidate images are present, and
lets the user select one.  The default choice is the first image in the
list to be detected.  If only one image was detected, it will be
automatically selected.  The list contains the aforementioned standard
image, as well as the default names for recovery, test, factory and
factory install images.  If the script is invoked with --test, --factory
or --factory_install flags, it will only seek for the standard image
(and attempt to generate the desired image from it, as was previously
done).

Also fixed some log messages; option strings; and improved the logic for
unmounting the target device, eliminating an unnecessary message and
a 3 second delay.

BUG=chromium-os:26010
TEST=Tested image_to_usb.sh with different images and flags.
CQ-DEPEND=I53a42a46a3c90fd486fead578bfbae248f64cfc2

Change-Id: I0d2f20dc8d62ce5fa18c10d9f8b51a46b2ddca5d
Reviewed-on: https://gerrit.chromium.org/gerrit/15528
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Tested-by: Gilad Arnold <garnold@chromium.org>
Commit-Ready: Gilad Arnold <garnold@chromium.org>
2012-02-09 15:19:57 -08:00
bin Added ability to download images othert than x86-generic. 2012-01-10 12:29:11 -08:00
build_library Remove chromeos-wm from the files that we test for. 2012-02-03 10:17:08 -08:00
chroot_version_hooks.d Add upgrade script to move incremental chrome build content. 2012-02-07 00:35:44 -08:00
lib Update KVM to simulate up to 4 CPUs. 2011-11-16 20:02:45 -08:00
mod_for_dbusspy Add script which can instrument a test system for dbusspy at boot time 2012-01-31 11:54:38 -08:00
mod_for_factory_scripts crosutils: build factory test image by emerge commands 2012-01-20 17:54:11 -08:00
mod_for_test_scripts Make mod-for-test enable full root usage of dbus-monitor 2011-12-09 16:35:27 -08:00
sdk_lib Require sudo usage to be non-interactive. 2012-02-08 16:19:14 -08:00
.gitignore ignore cbuildbot_package.list file 2011-12-14 20:57:10 -08:00
archive_hwqual Use pbzip2 in archive_build, if it is available. 2011-08-06 18:58:44 -07:00
bash_completion Trivial change to test the commit queue by cleaning up Copyright date in bash_history. 2011-09-01 18:48:39 -07:00
build_image crosutils: build factory test image by emerge commands 2012-01-20 17:54:11 -08:00
build_kernel_image.sh Moved setting of kern_guid kernel arg from platform-specific to common. 2012-01-09 11:59:21 -08:00
build_packages Remove hacks for supporting old versions of emerge from build_packages. 2012-01-06 15:25:30 -08:00
call_autoserv.py Added HWQual utility script - call_script.py 2011-01-27 16:19:55 -08:00
chromeos-common.sh Switch to GPT-format disk images. 2010-03-30 14:17:34 -07:00
clean_loopback_devices Remove mounts from /tmp/esp.* as well 2011-11-25 14:02:52 -08:00
common.sh common.sh: new function for a selection menu with a default option. 2012-02-09 13:31:41 -08:00
cros_deps_diff add cros_deps_diff tool that creates dependency graph diffs 2010-07-08 14:52:37 -07:00
cros_generate_breakpad_symbols Don't generate symbols for files that dump_syms can't handle. 2012-01-25 17:47:25 -08: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_generate_stacks_bvt Support finding minidumps located deeper in the test results tree. 2011-10-06 17:43:17 -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 placeholders: update depot_tools for people who didn't read PSA 2011-08-24 12:33:57 -07:00
exclude-list Create squashfs as the rootfs. 2011-08-26 13:04:29 -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 get_latest_image: ignore files when searching for latest images 2011-10-19 19:14:42 -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 image_to_usb.sh: detect and allow to select between candidate images. 2012-02-09 15:19:57 -08:00
image_to_vm.sh Added sudo to VBoxManage call, to fix permission denied error when building a VirtualBox image 2012-01-09 16:25:34 -08:00
make_factory_package.sh crosutils: move factory setup scripts to ../platform/factory-utils/factory_setup 2011-11-08 23:09:11 -08:00
make_netboot.sh rename /u-boot --> /firmware 2011-09-08 17:05:10 -07:00
mod_image_for_recovery.sh mod_image_for_recovery.sh: some cleanup. 2012-02-08 14:44:56 -08:00
mod_image_for_test.sh Add ability to pass in specific images you want built rather than use flags. 2011-10-27 16:33:07 -07:00
mod_test_image_for_dbusspy.sh Add script which can instrument a test system for dbusspy at boot time 2012-01-31 11:54:38 -08:00
mod_test_image_for_pyauto.sh Fix comments 2011-10-25 14:38:29 -07:00
mount_gpt_image.sh use helper info/die funcs rather than raw echo 2012-01-24 21:57:30 -08:00
remote_access.sh Tweak ssh settings to detect when remote server dies. 2011-09-30 22:29:41 -07:00
run_chroot_version_hooks run_chroot_version_hooks: sanity check for multiple upgrades hooks 2011-11-20 15:22:24 -08:00
run_remote_tests.sh Remove testing utilities and fix symlinks. 2011-03-24 16:06:59 -07:00
serve_factory_packages.py crosutils: globally replace enter_chroot with cros_sdk 2011-08-19 15:35:32 -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 Revert "setup_board: make the gcc/glibc version stable by default, take 2" 2012-02-01 06:10:23 -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
update_bootloaders.sh Install kernels on partition 12 on arm 2011-12-23 08:49:04 -08:00
update_chroot update_chroot: autodiscard all config updates 2011-11-09 14:00:11 -08:00
update_kernel.sh update_kernel: use $TMP for generated outputs 2011-10-19 11:05:33 -07:00
upload_symbols scripts: fall back to linkage symbols when debug info not present 2011-11-09 18:27:05 -08:00
verify_rootfs_chksum.sh Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00