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 generate a Chromium OS update for use by the update engine. | 7 # Script to generate a Chromium OS update for use by the update engine. |
8 # If a source .bin is specified, the update is assumed to be a delta update. | 8 # If a source .bin is specified, the update is assumed to be a delta update. |
9 | 9 |
10 # --- BEGIN COMMON.SH BOILERPLATE --- | 10 # --- BEGIN COMMON.SH BOILERPLATE --- |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 cleanup noexit | 240 cleanup noexit |
241 | 241 |
242 if [ "$DELTA" -eq "$FLAGS_TRUE" ]; then | 242 if [ "$DELTA" -eq "$FLAGS_TRUE" ]; then |
243 echo "Done generating delta." | 243 echo "Done generating delta." |
244 else | 244 else |
245 echo "Done generating new style full update." | 245 echo "Done generating new style full update." |
246 fi | 246 fi |
247 else | 247 else |
248 echo "Generating old-style full update" | 248 echo "Generating old-style full update" |
249 | 249 |
| 250 # TODO(zbehan): Remove this branch entirely and disable the cmdline option. |
| 251 echo "This is a deprecated and unused behaviour. It also introduces unwanted" |
| 252 echo "dependency to a third script (mk_memento_images) which has become broken
." |
| 253 exit 1 |
| 254 |
250 trap cleanup INT TERM EXIT | 255 trap cleanup INT TERM EXIT |
251 DST_KERNEL=$(extract_partition_to_temp_file "$FLAGS_image" 2) | 256 DST_KERNEL=$(extract_partition_to_temp_file "$FLAGS_image" 2) |
252 if [ "$FLAGS_patch_kernel" -eq "$FLAGS_TRUE" ]; then | 257 if [ "$FLAGS_patch_kernel" -eq "$FLAGS_TRUE" ]; then |
253 patch_kernel "$FLAGS_image" "$DST_KERNEL" | 258 patch_kernel "$FLAGS_image" "$DST_KERNEL" |
254 fi | 259 fi |
255 DST_ROOT=$(extract_partition_to_temp_file "$FLAGS_image" 3) | 260 DST_ROOT=$(extract_partition_to_temp_file "$FLAGS_image" 3) |
256 | 261 |
257 GENERATOR="${SCRIPTS_DIR}/mk_memento_images.sh" | 262 # GENERATOR="${SCRIPTS_DIR}/mk_memento_images.sh" |
258 | 263 |
259 CROS_GENERATE_UPDATE_PAYLOAD_CALLED=1 "$GENERATOR" "$DST_KERNEL" "$DST_ROOT" | 264 CROS_GENERATE_UPDATE_PAYLOAD_CALLED=1 "$GENERATOR" "$DST_KERNEL" "$DST_ROOT" |
260 mv "$(dirname "$DST_KERNEL")/update.gz" "$FLAGS_output" | 265 mv "$(dirname "$DST_KERNEL")/update.gz" "$FLAGS_output" |
261 | 266 |
262 trap - INT TERM EXIT | 267 trap - INT TERM EXIT |
263 cleanup noexit | 268 cleanup noexit |
264 echo "Done generating full update." | 269 echo "Done generating full update." |
265 fi | 270 fi |
OLD | NEW |