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