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

Issue 3066037: build_image, mod_image_for_*: break out make_image_bootable (Closed)

Created:
10 years, 4 months ago by Will Drewry
Modified:
9 years, 7 months ago
Reviewers:
petkov, gauravsh, adlr, anush
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, sosa, Tan Gao
Base URL:
http://src.chromium.org/git/crosutils.git
Visibility:
Public.

Description

build_image, mod_image_for_*: break out make_image_bootable Breaks make_image_bootable out of build_image into a separate script. In addition, it make a helper .sh in the OUTPUT_DIR to let make_image_bootable be re-run on an image with the same arguments that were passed in via build_image. This change also removes the use of the boot/ directory in OUTPUT_DIR. TEST=build_image verified; image_to_usb --test_image; booted l13 build_image; image_to_vm; qemu booted build_image verified; image_to_usb; booted l13 BUG=chromium-os:5081

Patch Set 1 #

Total comments: 8

Patch Set 2 : fix $0 in the generated code #

Total comments: 4

Patch Set 3 : edit desc #

Total comments: 1

Patch Set 4 : fix nits; move to boot.desc and bin/cros_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -139 lines) Patch
A bin/cros_make_image_bootable View 1 chunk +253 lines, -0 lines 0 comments Download
M build_image View 1 2 3 8 chunks +37 lines, -139 lines 0 comments Download
M mod_image_for_dev_recovery.sh View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M mod_image_for_recovery.sh View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M mod_image_for_test.sh View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Will Drewry
10 years, 4 months ago (2010-08-05 01:09:02 UTC) #1
Will Drewry
I'm still testing this change across different combinations but if anyone else would be willing ...
10 years, 4 months ago (2010-08-05 01:57:19 UTC) #2
anush
Thanks for modularizing this. If we expect make_image_bootable to be called by the end user ...
10 years, 4 months ago (2010-08-05 02:48:27 UTC) #3
Will Drewry
On 2010/08/05 02:48:27, anush wrote: > Thanks for modularizing this. No problem! It'd been my ...
10 years, 4 months ago (2010-08-05 03:00:17 UTC) #4
anush
On Wed, Aug 4, 2010 at 8:00 PM, <wad@chromium.org> wrote: > On 2010/08/05 02:48:27, anush ...
10 years, 4 months ago (2010-08-05 03:47:05 UTC) #5
gauravsh
http://codereview.chromium.org/3066037/diff/1/3 File make_image_bootable (right): http://codereview.chromium.org/3066037/diff/1/3#newcode3 make_image_bootable:3: # Copyright (c) 2009 The Chromium OS Authors. All ...
10 years, 4 months ago (2010-08-05 04:04:41 UTC) #6
Will Drewry
On 2010/08/05 03:47:05, anush wrote: > > Instead of autogenerating a script to be run ...
10 years, 4 months ago (2010-08-05 15:50:57 UTC) #7
Will Drewry
Updated for comments and for anush's comments. PTAL! (running tests now...) http://codereview.chromium.org/3066037/diff/1/3 File make_image_bootable (right): ...
10 years, 4 months ago (2010-08-05 16:04:07 UTC) #8
anush
10 years, 4 months ago (2010-08-05 18:53:30 UTC) #9
LGTM.

On 2010/08/05 16:04:07, Will Drewry wrote:
> Updated for comments and for anush's comments. 
> 
> PTAL! (running tests now...)
> 
> http://codereview.chromium.org/3066037/diff/1/3
> File make_image_bootable (right):
> 
> http://codereview.chromium.org/3066037/diff/1/3#newcode3
> make_image_bootable:3: # Copyright (c) 2009 The Chromium OS Authors. All
rights
> reserved.
> On 2010/08/05 04:04:41, gauravsh wrote:
> > update copyright
> > 
> 
> Done.
> 
> http://codereview.chromium.org/3066037/diff/1/3#newcode102
> make_image_bootable:102: root_dev=$(mount | grep -- "on
> ${FLAGS_rootfs_mountpoint} type" | cut -f1 -d' ' | tail -1)
> On 2010/08/05 04:04:41, gauravsh wrote:
> > 80 chars
> 
> Done.
> 
> http://codereview.chromium.org/3066037/diff/1/3#newcode147
> make_image_bootable:147: sudo cp "${FLAGS_output_dir}/vmlinuz_hd.vblock"
> "${FLAGS_statefulfs_mountpoint}"
> On 2010/08/05 04:04:41, gauravsh wrote:
> > 80 chars
> 
> Done.
> 
> http://codereview.chromium.org/3066037/diff/1/3#newcode182
> make_image_bootable:182: local kpart_size="--kernel_partition_sectors="
> On 2010/08/05 04:04:41, gauravsh wrote:
> > =${ksize}?
> 
> The assignment continues below with partsize..., but I havent change any of
this
> code. This is a cut and paste and search and replace from build_image to here
:)

Powered by Google App Engine
This is Rietveld 408576698