OLD | NEW |
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 Loading... |
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}" |
OLD | NEW |