OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2009-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 # Script to update an image onto a live running ChromiumOS instance. | 7 # Script to update an image onto a live running ChromiumOS instance. |
8 | 8 |
9 # Load common constants. This should be the first executable line. | 9 # Load common constants. This should be the first executable line. |
10 # The path to common.sh should be relative to your script's location. | 10 # The path to common.sh should be relative to your script's location. |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 [ ${FLAGS_for_vm} -eq ${FLAGS_TRUE} ] && \ | 133 [ ${FLAGS_for_vm} -eq ${FLAGS_TRUE} ] && \ |
134 devserver_flags="${devserver_flags} --for_vm" | 134 devserver_flags="${devserver_flags} --for_vm" |
135 | 135 |
136 devserver_flags="${devserver_flags} \ | 136 devserver_flags="${devserver_flags} \ |
137 --src_image=\"$(reinterpret_path_for_chroot ${FLAGS_src_image})\"" | 137 --src_image=\"$(reinterpret_path_for_chroot ${FLAGS_src_image})\"" |
138 | 138 |
139 info "Starting devserver with flags ${devserver_flags}" | 139 info "Starting devserver with flags ${devserver_flags}" |
140 ./enter_chroot.sh "sudo ./start_devserver ${devserver_flags} \ | 140 ./enter_chroot.sh "sudo ./start_devserver ${devserver_flags} \ |
141 --client_prefix=ChromeOSUpdateEngine \ | 141 --client_prefix=ChromeOSUpdateEngine \ |
| 142 --board=${FLAGS_board} \ |
142 --port=${FLAGS_devserver_port} > ${FLAGS_server_log} 2>&1" & | 143 --port=${FLAGS_devserver_port} > ${FLAGS_server_log} 2>&1" & |
143 | 144 |
144 info "Waiting on devserver to start" | 145 info "Waiting on devserver to start" |
145 info "note: be patient as the server generates the update before starting." | 146 info "note: be patient as the server generates the update before starting." |
146 until netstat -anp 2>&1 | grep 0.0.0.0:${FLAGS_devserver_port} > /dev/null | 147 until netstat -anp 2>&1 | grep 0.0.0.0:${FLAGS_devserver_port} > /dev/null |
147 do | 148 do |
148 sleep 5 | 149 sleep 5 |
149 echo -n "." | 150 echo -n "." |
150 done | 151 done |
151 echo "" | 152 echo "" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 local release_description=$(echo ${REMOTE_OUT} | cut -d '=' -f 2) | 389 local release_description=$(echo ${REMOTE_OUT} | cut -d '=' -f 2) |
389 info "Update was successful and rebooted to $release_description" | 390 info "Update was successful and rebooted to $release_description" |
390 fi | 391 fi |
391 | 392 |
392 print_time_elapsed | 393 print_time_elapsed |
393 | 394 |
394 exit 0 | 395 exit 0 |
395 } | 396 } |
396 | 397 |
397 main $@ | 398 main $@ |
OLD | NEW |