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

Issue 3423014: Issue 6637: remove implicit dependency on unpack_partition.sh from mod_image_for_dev_recovery.sh (Closed)

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

Description

Issue 6637: remove implicit dependency on unpack_partition.sh from mod_image_for_dev_recovery.sh Change-Id: Ibc260c442f6219c000560f7d665d36543c936611 BUG=chromium-os:6637 TEST=manually created a developer recovery image and tested on agz device with developer switch ON that payload image was installed onto the device successfully and the device is able to boot from HD upon completion of recovery process

Patch Set 1 #

Patch Set 2 : minor fix #

Total comments: 14

Patch Set 3 : fix per feedback #

Total comments: 6

Patch Set 4 : clean up loop device #

Patch Set 5 : fix per feedback #

Patch Set 6 : suppress unnecessary stdout/stderr so echo $value propagate correctly #

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

Messages

Total messages: 6 (0 generated)
Tan Gao
Hi Andrew/Gaurav, This CL removes the dependency on unpack_partitions.sh from mod_image_for_dev_recovery.sh. The original issue was ...
10 years, 3 months ago (2010-09-17 22:24:14 UTC) #1
adlr
http://codereview.chromium.org/3423014/diff/2001/3 File mod_image_for_dev_recovery.sh (right): http://codereview.chromium.org/3423014/diff/2001/3#newcode107 mod_image_for_dev_recovery.sh:107: TEMP_IMG=$(mktemp) make this a local and have it be ...
10 years, 3 months ago (2010-09-17 23:53:23 UTC) #2
Tan Gao
http://codereview.chromium.org/3423014/diff/2001/3 File mod_image_for_dev_recovery.sh (right): http://codereview.chromium.org/3423014/diff/2001/3#newcode107 mod_image_for_dev_recovery.sh:107: TEMP_IMG=$(mktemp) Done. http://codereview.chromium.org/3423014/diff/2001/3#newcode124 mod_image_for_dev_recovery.sh:124: On 2010/09/17 23:53:23, adlr wrote: ...
10 years, 3 months ago (2010-09-20 16:46:51 UTC) #3
adlr
LGTM if you retested after these most recent changes.
10 years, 3 months ago (2010-09-20 17:57:12 UTC) #4
gauravsh
lgtm with nits http://codereview.chromium.org/3423014/diff/5002/6001 File mod_image_for_dev_recovery.sh (right): http://codereview.chromium.org/3423014/diff/5002/6001#newcode77 mod_image_for_dev_recovery.sh:77: # Due to this resize, we ...
10 years, 3 months ago (2010-09-20 19:21:17 UTC) #5
Tan Gao
10 years, 3 months ago (2010-09-20 20:08:01 UTC) #6
http://codereview.chromium.org/3423014/diff/5002/6001
File mod_image_for_dev_recovery.sh (right):

http://codereview.chromium.org/3423014/diff/5002/6001#newcode77
mod_image_for_dev_recovery.sh:77: # Due to this resize, we need to created a new
partition table and a new image.
On 2010/09/20 19:21:17, gauravsh wrote:
> s/created/create/

Done.

http://codereview.chromium.org/3423014/diff/5002/6001#newcode170
mod_image_for_dev_recovery.sh:170: sudo umount "${TEMP_MNT_STATE}"
added cleanup_loop_dev method below

On 2010/09/20 19:21:17, gauravsh wrote:
> umount -d or you won't free up the loop device

http://codereview.chromium.org/3423014/diff/5002/6001#newcode172
mod_image_for_dev_recovery.sh:172: rm -rf "${temp_state}"
On 2010/09/20 19:21:17, gauravsh wrote:
> you don't need the -r here

Done.

Powered by Google App Engine
This is Rietveld 408576698