mirror of
https://github.com/flatcar/scripts.git
synced 2026-02-12 03:01:46 +01:00
Without this fix, when the script is invoked with (say) --to=/dev/sdk but /dev/sdk is not a valid block device, we will interpret it as if the user intended to copy the image to a file of the same name. However, it is more likely that the user specified the wrong device name. Hence, this fix catches this type of error and will fail the operation with a corresponding error message. Also includes minor changes to printed messages. BUG=None TEST=Ran the script with different values of --to Change-Id: Ie060ff2be77b8c065ba95f635455049e034d4bbc Reviewed-on: https://gerrit.chromium.org/gerrit/15822 Reviewed-by: Gilad Arnold <garnold@chromium.org> Tested-by: Gilad Arnold <garnold@chromium.org> Commit-Ready: Gilad Arnold <garnold@chromium.org>
Description
Languages
Shell
93.1%
Python
6.9%