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

Issue 3391018: Issue 6759: reduce size of stateful partition for non-developer recovery image (Closed)

Created:
10 years, 3 months ago by Tan Gao
Modified:
9 years, 7 months ago
Reviewers:
Will Drewry, adlr
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa, adlr
Visibility:
Public.

Description

Issue 6759: reduce size of stateful partition for non-developer recovery image Change-Id: I636f3156e549508230515174edffaff650c9d46e BUG=chromium-os:6759 TEST=(1)manually built a non-developer recovery image and verified recovery install completes on an agz device and the device is able to boot from HD upon reboot (2) repeat for a developer recovery image and verified dev image from dev_payload is installed onto target and the target is able to boot from HD

Patch Set 1 #

Patch Set 2 : remove FLAGS_ from resize_stateful_partition.sh #

Patch Set 3 : update mod_image_for_recovery to use resize_stateful_partition.sh #

Patch Set 4 : test #

Patch Set 5 : test #

Patch Set 6 : correctly downsize stateful partition #

Patch Set 7 : remove FLAGS_dev_install_shim flag #

Patch Set 8 : minor fix #

Total comments: 24

Patch Set 9 : fix per feedback #

Patch Set 10 : new fix per actual testing #

Patch Set 11 : use global variable instead of echo to return values #

Patch Set 12 : correctly invoke child process and pass TEMP_IMG from caller #

Total comments: 5

Patch Set 13 : incorporate wad's algo for resizing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -163 lines) Patch
M mod_image_for_dev_recovery.sh View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +16 lines, -98 lines 0 comments Download
M mod_image_for_recovery.sh View 3 4 5 6 7 8 9 10 11 12 3 chunks +62 lines, -65 lines 0 comments Download
A resize_stateful_partition.sh View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +96 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Tan Gao
Hi Will, This CL fixes issue 6759 by reducing size of stateful partition when creating ...
10 years, 3 months ago (2010-09-24 22:12:28 UTC) #1
Tan Gao
10 years, 2 months ago (2010-10-05 14:59:55 UTC) #2
Will Drewry
mostly looks good with some minor cleanup and questions thanks! http://codereview.chromium.org/3391018/diff/21001/22002 File mod_image_for_recovery.sh (right): http://codereview.chromium.org/3391018/diff/21001/22002#newcode89 ...
10 years, 2 months ago (2010-10-05 15:28:02 UTC) #3
Tan Gao
Thanks for the thorough review, Will! http://codereview.chromium.org/3391018/diff/21001/22002 File mod_image_for_recovery.sh (right): http://codereview.chromium.org/3391018/diff/21001/22002#newcode89 mod_image_for_recovery.sh:89: # convert floating ...
10 years, 2 months ago (2010-10-06 18:20:55 UTC) #4
Tan Gao
Hi Will, While testing Set 9 of this CL, I ran into a few issues ...
10 years, 2 months ago (2010-10-06 21:37:39 UTC) #5
Will Drewry
I'd like the comment updated with the actual problem, but otherwise this looks better :) ...
10 years, 2 months ago (2010-10-07 22:51:09 UTC) #6
Tan Gao
http://codereview.chromium.org/3391018/diff/44001/45002 File mod_image_for_recovery.sh (right): http://codereview.chromium.org/3391018/diff/44001/45002#newcode103 mod_image_for_recovery.sh:103: # Do NOT use 4Kb block size as it ...
10 years, 2 months ago (2010-10-07 23:47:35 UTC) #7
Will Drewry
I can help with this tomorrow if that's useful - it shouldn't take long. I'd ...
10 years, 2 months ago (2010-10-08 02:01:13 UTC) #8
kliegs1
Random guess of something to try. Run 'df -i' on the volume in question. Will ...
10 years, 2 months ago (2010-10-08 05:33:58 UTC) #9
Will Drewry
Based on our chat, it sounds like you're running out of inodes because the size ...
10 years, 2 months ago (2010-10-08 16:34:53 UTC) #10
Tan Gao
hew .. hope it's ready to go this time :-) http://codereview.chromium.org/3391018/diff/44001/45002 File mod_image_for_recovery.sh (right): http://codereview.chromium.org/3391018/diff/44001/45002#newcode74 ...
10 years, 2 months ago (2010-10-08 22:01:13 UTC) #11
Will Drewry
10 years, 2 months ago (2010-10-08 22:19:21 UTC) #12
cool LGTM

Powered by Google App Engine
This is Rietveld 408576698