Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Unified Diff: image_to_live.sh

Issue 5550001: Create a new command update_kernel.sh (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Fix comment. Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remote_access.sh » ('j') | update_kernel.sh » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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})" \
« no previous file with comments | « no previous file | remote_access.sh » ('j') | update_kernel.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698