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

Issue 6745022: run --mode=devstartup unconditionally if we booted developer firmware (Closed)

Created:
9 years, 9 months ago by Stefan Reinauer
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

run --mode=devstartup unconditionally if we booted developer firmware Change-Id: Ice7d5343b50343f4cb0f323929c4e53132638cc8 BUG=none TEST=boot system with developer mode firmware Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=df8cdb5

Patch Set 1 #

Total comments: 8

Patch Set 2 : changes from code reviewe #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -13 lines) Patch
M chromeos_startup View 1 1 chunk +19 lines, -13 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Randall Spangler
LGTM with suggestion http://codereview.chromium.org/6745022/diff/1/chromeos_startup File chromeos_startup (right): http://codereview.chromium.org/6745022/diff/1/chromeos_startup#newcode108 chromeos_startup:108: "$FIRMWARE_UPDATE_SCRIPT" --mode=devstartup 2>&1 | If this ...
9 years, 9 months ago (2011-03-28 22:00:22 UTC) #1
jrbarnette
http://codereview.chromium.org/6745022/diff/1/chromeos_startup File chromeos_startup (right): http://codereview.chromium.org/6745022/diff/1/chromeos_startup#newcode105 chromeos_startup:105: if [ -x "$FIRMWARE_UPDATE_SCRIPT" ]; then This is pre-existing, ...
9 years, 9 months ago (2011-03-29 00:14:03 UTC) #2
Stefan Reinauer
9 years, 9 months ago (2011-03-29 20:30:16 UTC) #3
ok, new version with (most of) the issues fixed

http://codereview.chromium.org/6745022/diff/1/chromeos_startup
File chromeos_startup (right):

http://codereview.chromium.org/6745022/diff/1/chromeos_startup#newcode105
chromeos_startup:105: if [ -x "$FIRMWARE_UPDATE_SCRIPT" ]; then
On 2011/03/29 00:14:03, jrbarnette wrote:
> This is pre-existing, but can we delete it?  Is there any valid system
> configuration that allows this script not to exist?
> 
> If necessary, I can file a bug to get this fixed separately.


Not sure if there is. On chromium builds the file seems to be there but empty.
There are a whole lot of use cases like this all over the init scripts. Maybe a
bug to clean them up would make sense?

http://codereview.chromium.org/6745022/diff/1/chromeos_startup#newcode106
chromeos_startup:106: if crossystem mainfw_type?developer; then
On 2011/03/29 00:14:03, jrbarnette wrote:
> Ugh.  Is this really the syntax for crossystem arguments?
> Using '?' in arguments is problematic, because the shell
> interprets this character specially.  At minimum, this argument
> needs to be quoted.  Better would be to fix the crossystem
> command syntax.

fixed

http://codereview.chromium.org/6745022/diff/1/chromeos_startup#newcode121
chromeos_startup:121: set_startup_update_tries $(( $tries - 1 ))
On 2011/03/28 22:00:25, Randall Spangler wrote:
> I'd be tempted to move the decrement to just after line 112, so if anything
goes
> wrong in setting up the update (lines 113-119) we'll eventually run out of
> tries.

done

Powered by Google App Engine
This is Rietveld 408576698