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

Issue 4418002: mod_image_for_recovery: keep the stateful partition around. (Closed)

Created:
10 years, 1 month ago by Will Drewry
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

mod_image_for_recovery: keep the stateful partition around. Developer images may have data on stateful they want to keep. In that case, just swap the kernels. BUG=chromium-os:7451 TEST=tested with a --withdev build and stateful was intact and the recovery install worked. Change-Id: I59d7f2e99892448d1eaf964e6292611accb2035c

Patch Set 1 #

Patch Set 2 : change flag to preserve_stateful #

Total comments: 2

Patch Set 3 : change to --[no]minimize_image #

Total comments: 1

Patch Set 4 : make debugging work correctly with the new inplace #

Total comments: 4

Patch Set 5 : add quotes around streq #

Patch Set 6 : fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -14 lines) Patch
M mod_image_for_recovery.sh View 1 2 3 4 5 12 chunks +68 lines, -14 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Will Drewry
10 years, 1 month ago (2010-11-03 23:18:21 UTC) #1
Will Drewry
Fix reviewers. :/
10 years, 1 month ago (2010-11-04 00:23:50 UTC) #2
rochberg
http://codereview.chromium.org/4418002/diff/3001/4001 File mod_image_for_recovery.sh (right): http://codereview.chromium.org/4418002/diff/3001/4001#newcode283 mod_image_for_recovery.sh:283: if [ $FLAGS_preserve_stateful -eq $FLAGS_TRUE ]; then I don't ...
10 years, 1 month ago (2010-11-04 00:43:20 UTC) #3
Will Drewry
+hungte for FYI and comments :) http://codereview.chromium.org/4418002/diff/3001/4001 File mod_image_for_recovery.sh (right): http://codereview.chromium.org/4418002/diff/3001/4001#newcode283 mod_image_for_recovery.sh:283: if [ $FLAGS_preserve_stateful ...
10 years, 1 month ago (2010-11-04 01:49:26 UTC) #4
Hung-Te
seems fine to me.
10 years, 1 month ago (2010-11-04 10:40:20 UTC) #5
Will Drewry
Thanks - any other thoughts? David - if you're not comfortable LGTM'ing it, I can ...
10 years, 1 month ago (2010-11-04 14:59:21 UTC) #6
rochberg_internal
LGTM pending my comment, which you can choose to ignore. http://codereview.chromium.org/4418002/diff/9001/10001 File mod_image_for_recovery.sh (right): http://codereview.chromium.org/4418002/diff/9001/10001#newcode46 ...
10 years, 1 month ago (2010-11-04 15:24:26 UTC) #7
Will Drewry
Cool -- it'd save on disk space :) I think that'd be good in addition ...
10 years, 1 month ago (2010-11-04 15:28:43 UTC) #8
Will Drewry
Added along with some verbose logging. I also tested it and it worked fine with ...
10 years, 1 month ago (2010-11-04 19:09:12 UTC) #9
sosa
LGTM on new diff with two nits http://codereview.chromium.org/4418002/diff/17001/18001 File mod_image_for_recovery.sh (right): http://codereview.chromium.org/4418002/diff/17001/18001#newcode71 mod_image_for_recovery.sh:71: exec 2>/dev/null ...
10 years, 1 month ago (2010-11-05 03:12:04 UTC) #10
Will Drewry
10 years, 1 month ago (2010-11-05 03:16:06 UTC) #11
Done - thanks!

http://codereview.chromium.org/4418002/diff/17001/18001
File mod_image_for_recovery.sh (right):

http://codereview.chromium.org/4418002/diff/17001/18001#newcode71
mod_image_for_recovery.sh:71: exec 2>/dev/null
On 2010/11/05 03:12:09, sosa wrote:
> Add a comment before die explaining you're redirecting it's output to stdout
> rather than stderr to avoid the exec 2>/dev/null

Done.

http://codereview.chromium.org/4418002/diff/17001/18001#newcode345
mod_image_for_recovery.sh:345: if [ $FLAGS_image != $RECOVERY_IMAGE ]; then
On 2010/11/05 03:12:09, sosa wrote:
> quotes on both

Done.

Powered by Google App Engine
This is Rietveld 408576698