OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 # | 6 # |
7 # Updates an existing vm image with another image. | 7 # Updates an existing vm image with another image. |
8 | 8 |
9 . "$(dirname $0)/../common.sh" | 9 . "$(dirname $0)/../common.sh" |
10 . "$(dirname $0)/../lib/cros_vm_lib.sh" | 10 . "$(dirname $0)/../lib/cros_vm_lib.sh" |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 if [ -n "${FLAGS_update_image_path}" ]; then | 35 if [ -n "${FLAGS_update_image_path}" ]; then |
36 IMAGE_ARGS="--image=$(readlink -f ${FLAGS_update_image_path})" | 36 IMAGE_ARGS="--image=$(readlink -f ${FLAGS_update_image_path})" |
37 fi | 37 fi |
38 | 38 |
39 if [ -n "${FLAGS_payload}" ]; then | 39 if [ -n "${FLAGS_payload}" ]; then |
40 IMAGE_ARGS="--payload=${FLAGS_payload}" | 40 IMAGE_ARGS="--payload=${FLAGS_payload}" |
41 fi | 41 fi |
42 | 42 |
43 if [ -n "${FLAGS_proxy_port}" ]; then | 43 if [ -n "${FLAGS_proxy_port}" ]; then |
44 IMAGE_ARGS="--proxy_port=${FLAGS_proxy_port}" | 44 IMAGE_ARGS="${IMAGE_ARGS} --proxy_port=${FLAGS_proxy_port}" |
45 fi | 45 fi |
46 | 46 |
47 $(dirname $0)/../image_to_live.sh \ | 47 $(dirname $0)/../image_to_live.sh \ |
48 --remote=127.0.0.1 \ | 48 --remote=127.0.0.1 \ |
49 --ssh_port=${FLAGS_ssh_port} \ | 49 --ssh_port=${FLAGS_ssh_port} \ |
50 --stateful_update_flag=${FLAGS_stateful_update_flag} \ | 50 --stateful_update_flag=${FLAGS_stateful_update_flag} \ |
51 --src_image="${FLAGS_src_image}" \ | 51 --src_image="${FLAGS_src_image}" \ |
52 --verify \ | 52 --verify \ |
53 --for_vm \ | 53 --for_vm \ |
54 ${IMAGE_ARGS} | 54 ${IMAGE_ARGS} |
55 | 55 |
OLD | NEW |