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

Unified Diff: image_to_live.sh

Issue 4165009: Add components to pass vm flag to dev server. (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Nit Created 10 years, 2 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 | « bin/cros_run_vm_update ('k') | 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 1da4e2609bf519a5df7ecbddce1941a574404551..b27a87db540b3788656353a6fc6a5da25483283c 100755
--- a/image_to_live.sh
+++ b/image_to_live.sh
@@ -32,6 +32,7 @@ DEFINE_string archive_dir "" \
"Update using the test image in the image.zip in this directory." a
DEFINE_integer devserver_port 8080 \
"Port to use for devserver."
+DEFINE_boolean for_vm ${FLAGS_FALSE} "Image is for a vm."
DEFINE_string image "" \
"Update with this image path that is in this source checkout." i
DEFINE_string src_image "" \
@@ -129,6 +130,9 @@ function start_dev_server {
IMAGE_PATH="${IMAGE_PATH}/chromiumos_image.bin"
fi
+ [ ${FLAGS_for_vm} -eq ${FLAGS_TRUE} ] && \
+ devserver_flags="${devserver_flags} --for_vm"
+
devserver_flags="${devserver_flags} \
--src_image=\"$(reinterpret_path_for_chroot ${FLAGS_src_image})\""
« no previous file with comments | « bin/cros_run_vm_update ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698