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

Unified Diff: chromeos_startup

Issue 6745022: run --mode=devstartup unconditionally if we booted developer firmware (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/init.git@master
Patch Set: Created 9 years, 9 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos_startup
diff --git a/chromeos_startup b/chromeos_startup
index aecbf1dc1612664d0aa5e967fa2d70768296b434..d0452ac0d4122de01560cf6b1f60818d5a6d7bcc 100755
--- a/chromeos_startup
+++ b/chromeos_startup
@@ -103,20 +103,26 @@ DEVMODE=$((! $?))
FIRMWARE_UPDATE_SCRIPT='/usr/sbin/chromeos-firmwareupdate'
FIRMWARE_UPDATE_LOGS='/mnt/stateful_partition/var/log/update_firmware.log'
if [ -x "$FIRMWARE_UPDATE_SCRIPT" ]; then
jrbarnette 2011/03/29 00:14:03 This is pre-existing, but can we delete it? Is th
Stefan Reinauer 2011/03/29 20:30:16 Not sure if there is. On chromium builds the file
- tries="$(get_startup_update_tries)"
- if [ $tries -gt 0 ]; then
- if [ "$DEVMODE" = "1" -o -f /root/.dev_mode ]; then
- # More message on console for developer mode and dev builds
- FIRMWARE_UPDATE_LOGS="/dev/tty1 $FIRMWARE_UPDATE_LOGS"
- fi
- mkdir -p /mnt/stateful_partition/var/log
- [ -z "$BOOT_SPLASH_PID" ] || wait $BOOT_SPLASH_PID
- chromeos-boot-alert update_firmware /dev/tty1
-
- set_startup_update_tries $(( $tries - 1 ))
-
- "$FIRMWARE_UPDATE_SCRIPT" --mode=startup 2>&1 |
+ if crossystem mainfw_type?developer; then
jrbarnette 2011/03/29 00:14:03 Ugh. Is this really the syntax for crossystem arg
Stefan Reinauer 2011/03/29 20:30:16 fixed
+ FIRMWARE_UPDATE_LOGS="/dev/tty1 $FIRMWARE_UPDATE_LOGS"
+ "$FIRMWARE_UPDATE_SCRIPT" --mode=devstartup 2>&1 |
Randall Spangler 2011/03/28 22:00:25 If this returns error (for example, if 'mosys -k e
jrbarnette 2011/03/29 00:14:03 There's no set -e in this script, so failures shou
tee $FIRMWARE_UPDATE_LOGS
+ else
+ tries="$(get_startup_update_tries)"
+ if [ $tries -gt 0 ]; then
+ if [ "$DEVMODE" = "1" -o -f /root/.dev_mode ]; then
+ # More message on console for developer mode and dev builds
+ FIRMWARE_UPDATE_LOGS="/dev/tty1 $FIRMWARE_UPDATE_LOGS"
+ fi
+ mkdir -p /mnt/stateful_partition/var/log
+ [ -z "$BOOT_SPLASH_PID" ] || wait $BOOT_SPLASH_PID
+ chromeos-boot-alert update_firmware /dev/tty1
+
+ set_startup_update_tries $(( $tries - 1 ))
Randall Spangler 2011/03/28 22:00:25 I'd be tempted to move the decrement to just after
Stefan Reinauer 2011/03/29 20:30:16 done
+
+ "$FIRMWARE_UPDATE_SCRIPT" --mode=startup 2>&1 |
+ tee $FIRMWARE_UPDATE_LOGS
+ fi
fi
fi
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698