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

Side by Side Diff: mod_image_for_dev_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 | « build_image ('k') | mod_image_for_recovery.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 create a Chrome OS dev recovery image using a dev install shim 7 # Script to create a Chrome OS dev recovery image using a dev install shim
8 8
9 # Source constants and utility functions 9 # Source constants and utility functions
10 . "$(dirname "$0")/common.sh" 10 . "$(dirname "$0")/common.sh"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 sudo umount "${TEMP_MNT_STATE}" 162 sudo umount "${TEMP_MNT_STATE}"
163 trap - EXIT 163 trap - EXIT
164 } 164 }
165 165
166 # Main 166 # Main
167 DST_PATH="${INSTALL_SHIM_DIR}/${DEV_RECOVERY_IMAGE}" 167 DST_PATH="${INSTALL_SHIM_DIR}/${DEV_RECOVERY_IMAGE}"
168 info "Attempting to create dev recovery image using dev install shim \ 168 info "Attempting to create dev recovery image using dev install shim \
169 ${FLAGS_dev_install_shim}" 169 ${FLAGS_dev_install_shim}"
170 create_dev_recovery_image 170 create_dev_recovery_image
171
172 # Now make it bootable with the flags from build_image
173 ${SCRIPTS_DIR}/bin/cros_make_image_bootable $(dirname ${TEMP_IMG}) \
174 $(basename ${TEMP_IMG})
175
171 mv -f $TEMP_IMG $DST_PATH 176 mv -f $TEMP_IMG $DST_PATH
172 info "Dev recovery image created at ${DST_PATH}" 177 info "Dev recovery image created at ${DST_PATH}"
OLDNEW
« no previous file with comments | « build_image ('k') | mod_image_for_recovery.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698