| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2009 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 keyfob-based chromeos system image for testability. | 7 # Script to modify a keyfob-based chromeos system image for testability. |
| 8 | 8 |
| 9 # Load common constants. This should be the first executable line. | 9 # Load common constants. This should be the first executable line. |
| 10 # The path to common.sh should be relative to your script's location. | 10 # The path to common.sh should be relative to your script's location. |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 221 |
| 222 # Let's have a look at the image just in case.. | 222 # Let's have a look at the image just in case.. |
| 223 if [ "${VERIFY}" = "true" ]; then | 223 if [ "${VERIFY}" = "true" ]; then |
| 224 pushd "${ROOT_FS_DIR}" | 224 pushd "${ROOT_FS_DIR}" |
| 225 bash | 225 bash |
| 226 popd | 226 popd |
| 227 fi | 227 fi |
| 228 | 228 |
| 229 cleanup | 229 cleanup |
| 230 | 230 |
| 231 # Now make it bootable with the flags from build_image |
| 232 ${SCRIPTS_DIR}/bin/cros_make_image_bootable $(dirname "${FLAGS_image}") \ |
| 233 $(basename "${FLAGS_image}") |
| 234 |
| 231 print_time_elapsed | 235 print_time_elapsed |
| 232 | 236 |
| 233 trap - EXIT | 237 trap - EXIT |
| 234 | 238 |
| OLD | NEW |