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

Side by Side Diff: mod_image_for_recovery.sh

Issue 3066037: build_image, mod_image_for_*: break out make_image_bootable (Closed) Base URL: http://src.chromium.org/git/crosutils.git
Patch Set: fix nits; move to boot.desc and bin/cros_ Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mod_image_for_dev_recovery.sh ('k') | mod_image_for_test.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Script to modify a pristine/dev Chrome OS image to be used for recovery 7 # Script to modify a pristine/dev Chrome OS image to be used for recovery
8 8
9 . "$(dirname "$0")/common.sh" 9 . "$(dirname "$0")/common.sh"
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 ${SCRIPTS_DIR}/mount_gpt_image.sh -u -r "${ROOT_FS_DIR}" \ 77 ${SCRIPTS_DIR}/mount_gpt_image.sh -u -r "${ROOT_FS_DIR}" \
78 -s "${STATEFUL_DIR}" 78 -s "${STATEFUL_DIR}"
79 } 79 }
80 80
81 # Main 81 # Main
82 82
83 DST_PATH="${IMAGE_DIR}/${RECOVERY_IMAGE}" 83 DST_PATH="${IMAGE_DIR}/${RECOVERY_IMAGE}"
84 echo "Making a copy of original image ${FLAGS_image}" 84 echo "Making a copy of original image ${FLAGS_image}"
85 cp $FLAGS_image $DST_PATH 85 cp $FLAGS_image $DST_PATH
86 update_recovery_packages $DST_PATH 86 update_recovery_packages $DST_PATH
87
88 # Now make it bootable with the flags from build_image
89 ${SCRIPTS_DIR}/bin/cros_make_image_bootable "${IMAGE_DIR}" \
90 "${RECOVERY_IMAGE}"
91
87 echo "Recovery image created at ${DST_PATH}" 92 echo "Recovery image created at ${DST_PATH}"
OLDNEW
« no previous file with comments | « mod_image_for_dev_recovery.sh ('k') | mod_image_for_test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698