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

Issue 5216003: cros_make_image_bootable: Do a final sanity check on the rootfs by running e2fsck (Closed)

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

Description

cros_make_image_bootable: Do a final sanity check on the rootfs by running e2fsck This is a complement to the proposed fix for http://crosbug.com/9447, and I am getting it out first since it is a relatively simple change. This change ensures that the rootfs on the image output by cros_make_image_bootable wasn't corrupted accidentally (for example, no boot.desc was provided and the defaults were incorrect for the image). This should catch rootfs errors that we end up discovering at delta AU time. BUG=chromium-os:9578 TEST= Ran cros_make_image_bootable manually on an existing image with and without boot.desc. As expected, without boot.desc the output image rootfs had errors. Also ran ./build_image - which worked fine too. Change-Id: I4ed3a56634f37ab7d5ff2dc052ad607740356a40 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=d02793a

Patch Set 1 : new change #

Total comments: 6

Patch Set 2 : nit fixes #

Patch Set 3 : fix typo #

Total comments: 4

Patch Set 4 : quoting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -1 line) Patch
M bin/cros_make_image_bootable View 1 2 3 2 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
gauravsh
10 years, 1 month ago (2010-11-20 01:59:43 UTC) #1
sosa
What happens if you take a prebuilt image from someone else's machine and re-run cros_make_image_bootable? ...
10 years, 1 month ago (2010-11-20 02:22:00 UTC) #2
gauravsh
On Fri, Nov 19, 2010 at 6:21 PM, Chris Sosa <sosa@chromium.org> wrote: > What happens ...
10 years, 1 month ago (2010-11-20 02:29:31 UTC) #3
gauravsh
ping?
10 years, 1 month ago (2010-11-23 21:05:12 UTC) #4
sosa
Sorry about letting this drop over the weekend. Anyway, I'm still confused why we need ...
10 years, 1 month ago (2010-11-23 21:13:31 UTC) #5
gauravsh
10 years, 1 month ago (2010-11-24 01:50:51 UTC) #6
sosa
Nits http://codereview.chromium.org/5216003/diff/7001/bin/cros_make_image_bootable File bin/cros_make_image_bootable (right): http://codereview.chromium.org/5216003/diff/7001/bin/cros_make_image_bootable#newcode259 bin/cros_make_image_bootable:259: trap "rm $rootfs_tmp_file" EXIT Use {} around var ...
10 years, 1 month ago (2010-11-24 18:16:15 UTC) #7
gauravsh
http://codereview.chromium.org/5216003/diff/7001/bin/cros_make_image_bootable File bin/cros_make_image_bootable (right): http://codereview.chromium.org/5216003/diff/7001/bin/cros_make_image_bootable#newcode259 bin/cros_make_image_bootable:259: trap "rm $rootfs_tmp_file" EXIT On 2010/11/24 18:16:15, sosa wrote: ...
10 years, 1 month ago (2010-11-24 19:40:17 UTC) #8
sosa
LGTM
10 years, 1 month ago (2010-11-24 19:58:07 UTC) #9
petkov
i think you have a typo. lgtm otherwise. http://codereview.chromium.org/5216003/diff/16001/bin/cros_make_image_bootable File bin/cros_make_image_bootable (right): http://codereview.chromium.org/5216003/diff/16001/bin/cros_make_image_bootable#newcode259 bin/cros_make_image_bootable:259: trap ...
10 years, 1 month ago (2010-11-24 20:08:23 UTC) #10
gauravsh
On Wed, Nov 24, 2010 at 12:08 PM, <petkov@chromium.org> wrote: > i think you have ...
10 years, 1 month ago (2010-11-24 20:40:05 UTC) #11
sosa
LGTM w/ nits http://codereview.chromium.org/5216003/diff/20001/bin/cros_make_image_bootable File bin/cros_make_image_bootable (right): http://codereview.chromium.org/5216003/diff/20001/bin/cros_make_image_bootable#newcode264 bin/cros_make_image_bootable:264: enable_rw_mount ${rootfs_tmp_file} Want quotes around this ...
10 years, 1 month ago (2010-11-24 20:42:17 UTC) #12
gauravsh
http://codereview.chromium.org/5216003/diff/20001/bin/cros_make_image_bootable File bin/cros_make_image_bootable (right): http://codereview.chromium.org/5216003/diff/20001/bin/cros_make_image_bootable#newcode264 bin/cros_make_image_bootable:264: enable_rw_mount ${rootfs_tmp_file} On 2010/11/24 20:42:17, sosa wrote: > Want ...
10 years, 1 month ago (2010-11-24 20:46:46 UTC) #13
gauravsh
10 years, 1 month ago (2010-11-24 20:47:19 UTC) #14
On 2010/11/24 20:46:46, gauravsh wrote:
> http://codereview.chromium.org/5216003/diff/20001/bin/cros_make_image_bootable
> File bin/cros_make_image_bootable (right):
> 
>
http://codereview.chromium.org/5216003/diff/20001/bin/cros_make_image_bootabl...
> bin/cros_make_image_bootable:264: enable_rw_mount ${rootfs_tmp_file}
> On 2010/11/24 20:42:17, sosa wrote:
> > Want quotes around this since you put it elsewhere for same var
> 
> Done.
> 
>
http://codereview.chromium.org/5216003/diff/20001/bin/cros_make_image_bootabl...
> bin/cros_make_image_bootable:286: make_image_bootable ${IMAGE}
> On 2010/11/24 20:42:17, sosa wrote:
> > Note sure why calls to both of these aren't quoted
> 
> Done.

Pushing...

Powered by Google App Engine
This is Rietveld 408576698