image build and composition scripts for Flatcar Container Linux
Go to file
Chris Wolfe e87403d8f8 image_to_usb: Add flag to choose disk by product.
This adds a --to_product flag which chooses the destination
disk with a product value matching the specified pattern.
For the case where a developer is regularly writing to an
external USB drive, the product name may be more stable than
the raw device name.

Also added a help string for the --to flag. This was
accidentally deleted during some refactoring in 2010.

Tested with local cbuildbot internal pfq and manually:
  ./image_to_usb.sh
  ./image_to_usb.sh --to=/dev/sde
  ./image_to_usb.sh --to_product=\*Memory
  ./image_to_usb.sh --to_product=\*  # errors on multiple

BUG=chromium-os:22674
TEST=None

Change-Id: Ie7137e8c605217a3202c46d75896170fc6b7c4a5
Reviewed-on: https://gerrit.chromium.org/gerrit/11322
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Chris Wolfe <cwolfe@chromium.org>
Commit-Ready: Chris Wolfe <cwolfe@chromium.org>
2011-11-09 06:53:02 -08:00
bin Add the enable_rootfs_verification flag to cros_download_latest_image. 2011-10-20 10:27:11 -07:00
build_library Fix bug where we may modify FLAGS_factory_install after we source base_image_util.sh 2011-11-02 13:45:50 -07:00
chroot_version_hooks.d update hooks: punt old localtime symlinks 2011-11-04 10:55:01 -07:00
lib crosutils: move factory setup scripts to ../platform/factory-utils/factory_setup 2011-11-08 23:09:11 -08:00
mod_for_factory_scripts crosutils: clean up factory test image modification scripts 2011-08-31 23:37:12 -07:00
mod_for_test_scripts Look at all upstart configuation scripts for the #for_test hack. 2011-11-07 15:55:52 -08:00
sdk_lib enter_chroot: ignore errors from copying user ssh files 2011-10-31 21:49:19 -07:00
.gitignore ignore: tmp files and .pyc files 2010-09-09 14:25:33 -07: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 Fix bug where we may modify FLAGS_factory_install after we source base_image_util.sh 2011-11-02 13:45:50 -07:00
build_kernel_image.sh Change script style for ARCH comparisons to double-bracket bash style 2011-10-17 17:53:48 -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 clean_loopback_devices to actually parse board parameter 2011-11-08 12:47:34 -08:00
common.sh common.sh: Revert commit 9aa80dc457 2011-11-07 17:28:59 -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 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_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: Add flag to choose disk by product. 2011-11-09 06:53:02 -08:00
image_to_vm.sh Use fully qualified path for helpers. 2011-10-24 14:04:24 -07:00
make_chroot placeholders: update depot_tools for people who didn't read PSA 2011-08-24 12:33:57 -07: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 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 Append required bootargs for tegra2 recovery images 2011-11-08 19:28: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_pyauto.sh Fix comments 2011-10-25 14:38:29 -07:00
mount_gpt_image.sh Use fully qualified path for helpers. 2011-10-24 14:04:24 -07: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 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 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 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 Change script style for ARCH comparisons to double-bracket bash style 2011-10-17 17:53:48 -07:00
update_chroot Add IGNORE_PREFLIGHT_BINHOST env variable for ignoring PREFLIGHT_BINHOST. 2011-11-02 18:13:58 -07:00
update_kernel.sh update_kernel: use $TMP for generated outputs 2011-10-19 11:05:33 -07:00
upload_symbols crosutil: automatically strip CFI when uploading x86 symbols 2011-10-11 10:00:48 -07:00
verify_rootfs_chksum.sh Fix/standardize exiting if common.sh can't be found 2011-07-22 12:06:59 -07:00