mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-29 17:41:05 +02:00
Add --payload option to take advantage of the new option for devserver.
Change-Id: Icdd0a809a2f5aeaedccb2ed421984d9f298f181b BUG=chromium-os:8207 TEST=Ran by hand Review URL: http://codereview.chromium.org/5103004
This commit is contained in:
parent
4ea330f007
commit
a82ac9aba5
@ -36,6 +36,8 @@ DEFINE_integer devserver_port 8080 \
|
||||
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 payload "" \
|
||||
"Update with this update payload, ignoring specified images."
|
||||
DEFINE_string src_image "" \
|
||||
"Create a delta update by passing in the image on the remote machine."
|
||||
DEFINE_boolean update_stateful ${FLAGS_TRUE} \
|
||||
@ -132,6 +134,11 @@ function start_dev_server {
|
||||
--image $(reinterpret_path_for_chroot ${IMAGE_PATH})"
|
||||
fi
|
||||
|
||||
if [ -n "${FLAGS_payload}" ]; then
|
||||
devserver_flags="${devserver_flags} \
|
||||
--payload $(reinterpret_path_for_chroot ${FLAGS_payload})"
|
||||
fi
|
||||
|
||||
[ ${FLAGS_for_vm} -eq ${FLAGS_TRUE} ] && \
|
||||
devserver_flags="${devserver_flags} --for_vm"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user