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