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

Side by Side Diff: cros_generate_update_payload

Issue 6246073: Revert "cros_generate_update_payload: kill old style update image generation" (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 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
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
255 trap cleanup INT TERM EXIT 250 trap cleanup INT TERM EXIT
256 DST_KERNEL=$(extract_partition_to_temp_file "$FLAGS_image" 2) 251 DST_KERNEL=$(extract_partition_to_temp_file "$FLAGS_image" 2)
257 if [ "$FLAGS_patch_kernel" -eq "$FLAGS_TRUE" ]; then 252 if [ "$FLAGS_patch_kernel" -eq "$FLAGS_TRUE" ]; then
258 patch_kernel "$FLAGS_image" "$DST_KERNEL" 253 patch_kernel "$FLAGS_image" "$DST_KERNEL"
259 fi 254 fi
260 DST_ROOT=$(extract_partition_to_temp_file "$FLAGS_image" 3) 255 DST_ROOT=$(extract_partition_to_temp_file "$FLAGS_image" 3)
261 256
262 # GENERATOR="${SCRIPTS_DIR}/mk_memento_images.sh" 257 GENERATOR="${SCRIPTS_DIR}/mk_memento_images.sh"
263 258
264 CROS_GENERATE_UPDATE_PAYLOAD_CALLED=1 "$GENERATOR" "$DST_KERNEL" "$DST_ROOT" 259 CROS_GENERATE_UPDATE_PAYLOAD_CALLED=1 "$GENERATOR" "$DST_KERNEL" "$DST_ROOT"
265 mv "$(dirname "$DST_KERNEL")/update.gz" "$FLAGS_output" 260 mv "$(dirname "$DST_KERNEL")/update.gz" "$FLAGS_output"
266 261
267 trap - INT TERM EXIT 262 trap - INT TERM EXIT
268 cleanup noexit 263 cleanup noexit
269 echo "Done generating full update." 264 echo "Done generating full update."
270 fi 265 fi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698