| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 trap stop_kvm EXIT | 29 trap stop_kvm EXIT |
| 30 start_kvm "${FLAGS_vm_image_path}" | 30 start_kvm "${FLAGS_vm_image_path}" |
| 31 | 31 |
| 32 $(dirname $0)/../image_to_live.sh \ | 32 $(dirname $0)/../image_to_live.sh \ |
| 33 --remote=127.0.0.1 \ | 33 --remote=127.0.0.1 \ |
| 34 --ssh_port=${FLAGS_ssh_port} \ | 34 --ssh_port=${FLAGS_ssh_port} \ |
| 35 --stateful_update_flag=${FLAGS_stateful_update_flag} \ | 35 --stateful_update_flag=${FLAGS_stateful_update_flag} \ |
| 36 --src_image="${FLAGS_src_image}" \ | 36 --src_image="${FLAGS_src_image}" \ |
| 37 --verify \ | 37 --verify \ |
| 38 --for_vm \ |
| 38 --image=$(readlink -f ${FLAGS_update_image_path}) | 39 --image=$(readlink -f ${FLAGS_update_image_path}) |
| 39 | 40 |
| OLD | NEW |