| Index: image_to_live.sh
|
| diff --git a/image_to_live.sh b/image_to_live.sh
|
| index 58b83e91388cf56aa116a0d7b2b9a0e4312c2e5f..f18badf667639f9ab3aa4ca1fee0cee7d53fff7a 100755
|
| --- a/image_to_live.sh
|
| +++ b/image_to_live.sh
|
| @@ -291,31 +291,6 @@ function run_auto_update {
|
| fi
|
| }
|
|
|
| -function remote_reboot {
|
| - info "Rebooting."
|
| - remote_sh "touch /tmp/awaiting_reboot; reboot"
|
| - local output_file
|
| - output_file="${TMP}/output"
|
| -
|
| - while true; do
|
| - REMOTE_OUT=""
|
| - # This may fail while the machine is down so generate output and a
|
| - # boolean result to distinguish between down/timeout and real failure
|
| - ! remote_sh_allow_changed_host_key \
|
| - "echo 0; [ -e /tmp/awaiting_reboot ] && echo '1'; true"
|
| - echo "${REMOTE_OUT}" > "${output_file}"
|
| - if grep -q "0" "${output_file}"; then
|
| - if grep -q "1" "${output_file}"; then
|
| - info "Not yet rebooted"
|
| - else
|
| - info "Rebooted and responding"
|
| - break
|
| - fi
|
| - fi
|
| - sleep .5
|
| - done
|
| -}
|
| -
|
| function verify_image {
|
| info "Verifying image."
|
| "${SCRIPTS_DIR}/mount_gpt_image.sh" --from "$(dirname ${IMAGE_PATH})" \
|
|
|