| Index: bin/cros_run_vm_update
|
| diff --git a/bin/cros_run_vm_update b/bin/cros_run_vm_update
|
| index 53617b6f89c67cdf03535fe647f5971cc363d551..05e035683a547e879f50034e021e86351e65974d 100755
|
| --- a/bin/cros_run_vm_update
|
| +++ b/bin/cros_run_vm_update
|
| @@ -16,6 +16,7 @@ DEFINE_string src_image "" \
|
| "Create a delta update by passing in the image on the remote machine."
|
| DEFINE_string stateful_update_flag "" "Flags to pass to stateful update." s
|
| DEFINE_string update_image_path "" "Path of the image to update to." u
|
| +DEFINE_string update_url "" "Full url of an update image."
|
| DEFINE_string vm_image_path "" "Path of the VM image to update from." v
|
|
|
| set -e
|
| @@ -24,8 +25,6 @@ set -e
|
| FLAGS "$@" || exit 1
|
| eval set -- "${FLAGS_ARGV}"
|
|
|
| -[ -n "${FLAGS_update_image_path}" ] || [ -n "${FLAGS_payload}" ] || \
|
| - die "You must specify a path to an image to use as an update."
|
| [ -n "${FLAGS_vm_image_path}" ] || \
|
| die "You must specify a path to a vm image."
|
|
|
| @@ -45,11 +44,12 @@ if [ -n "${FLAGS_proxy_port}" ]; then
|
| fi
|
|
|
| $(dirname $0)/../image_to_live.sh \
|
| + --for_vm \
|
| --remote=127.0.0.1 \
|
| --ssh_port=${FLAGS_ssh_port} \
|
| --stateful_update_flag=${FLAGS_stateful_update_flag} \
|
| --src_image="${FLAGS_src_image}" \
|
| + --update_url="${FLAGS_update_url}" \
|
| --verify \
|
| - --for_vm \
|
| ${IMAGE_ARGS}
|
|
|
|
|