mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 15:11:19 +02:00
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>
Description
Languages
Shell
93.1%
Python
6.9%