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

Issue 5168001: cros_utils: refine factory and imaging related scripts (Closed)

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

Description

cros_utils: refine factory and imaging related scripts Major changes are: - prefix functions in cros_image_common with 'image' to avoid naming conflicts - use awk to replace grep+sed+cut - use case to handle board name list - factory_setup.sh should return error if applying patch failed - refine for shell script coding style guide: * replace `` with $() * quote variables * replace "! -z" by "-n" * no space between redirection symbol (>) and target name (eg, >>filename) * 1> should be simply > * no trailing \ for && and || BUG=chrome-os-partner:1583 TEST=manually verified: ./image_to_usb.sh --factory # calls mod_image_for_test --factory, and works fine ./make_factory_package.sh --factory PATH_TO_IMAGE --release PATH_TO_IMAGE ... # factory payloads were created successfully Change-Id: I6bb10bdfb12cbdb14e9816b3ad72dfe4b7b0472f Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=0629479

Patch Set 1 #

Total comments: 17

Patch Set 2 : refine by reviewer's comments #

Patch Set 3 : merge with latest changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -120 lines) Patch
M lib/cros_image_common.sh View 1 2 4 chunks +91 lines, -27 lines 0 comments Download
M make_factory_package.sh View 1 8 chunks +84 lines, -75 lines 0 comments Download
M mk_memento_images.sh View 3 chunks +14 lines, -14 lines 0 comments Download
M mod_for_factory_scripts/400configAutotest View 1 chunk +1 line, -1 line 0 comments Download
M mod_for_factory_scripts/factory_setup.sh View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Hung-Te
10 years, 1 month ago (2010-11-17 11:51:11 UTC) #1
Tom Wai-Hong Tam
LGTM. Thanks for fixing it. http://codereview.chromium.org/5168001/diff/1/make_factory_package.sh File make_factory_package.sh (right): http://codereview.chromium.org/5168001/diff/1/make_factory_package.sh#newcode282 make_factory_package.sh:282: echo "The miniomaha server ...
10 years, 1 month ago (2010-11-18 04:25:50 UTC) #2
Nick Sanders
http://codereview.chromium.org/5168001/diff/1/lib/cros_image_common.sh File lib/cros_image_common.sh (right): http://codereview.chromium.org/5168001/diff/1/lib/cros_image_common.sh#newcode55 lib/cros_image_common.sh:55: cgpt show -b -i "$partno" "$file" Can you add ...
10 years, 1 month ago (2010-11-18 05:12:08 UTC) #3
Hung-Te
Please take a look again, thanks! http://codereview.chromium.org/5168001/diff/1/lib/cros_image_common.sh File lib/cros_image_common.sh (right): http://codereview.chromium.org/5168001/diff/1/lib/cros_image_common.sh#newcode55 lib/cros_image_common.sh:55: cgpt show -b ...
10 years, 1 month ago (2010-11-18 05:49:31 UTC) #4
Nick Sanders
lgtm. Comments below but no changes necessary for this cl http://codereview.chromium.org/5168001/diff/1/lib/cros_image_common.sh File lib/cros_image_common.sh (right): http://codereview.chromium.org/5168001/diff/1/lib/cros_image_common.sh#newcode55 ...
10 years, 1 month ago (2010-11-18 06:18:35 UTC) #5
Hung-Te
10 years, 1 month ago (2010-11-18 06:46:24 UTC) #6
http://codereview.chromium.org/5168001/diff/1/lib/cros_image_common.sh
File lib/cros_image_common.sh (right):

http://codereview.chromium.org/5168001/diff/1/lib/cros_image_common.sh#newcode55
lib/cros_image_common.sh:55: cgpt show -b -i "$partno" "$file"
Thanks for the suggestion. It's a good idea to have parted in chroot so we can
always use parted when writing portable scripts to work inside/outside chroot.

Powered by Google App Engine
This is Rietveld 408576698