Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: image_to_live.sh

Issue 3609003: crosutils: Fix verify bug with image_to_live without args (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: image_to_live.sh
diff --git a/image_to_live.sh b/image_to_live.sh
index b08d0c9501fd2f8f4a2626e00e604f517066244e..fa566a6ac8175ef5f3da53a177899fef08fcf12d 100755
--- a/image_to_live.sh
+++ b/image_to_live.sh
@@ -100,6 +100,13 @@ function start_dev_server {
devserver_flags="${devserver_flags} \
--archive_dir $(reinterpret_path_for_chroot ${FLAGS_archive_dir}) -t"
IMAGE_PATH="${FLAGS_archive_dir}/chromiumos_test_image.bin"
+ else
+ # IMAGE_PATH should be the newest image and learn the board from
+ # the target.
+ FLAGS_board=""
+ learn_board
+ IMAGE_PATH="$($(dirname "$0")/get_latest_image.sh --board="${FLAGS_board}")"
+ IMAGE_PATH="${IMAGE_PATH}/chromiumos_image.bin"
fi
info "Starting devserver with flags ${devserver_flags}"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698