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

Side by Side Diff: scripts/image_signing/resign_image.sh

Issue 3027027: Rename image re-signing utility (for compactness and consistency sake). (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: Created 10 years, 4 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 # Standalone version of cros_resign_image.sh script from 7 # Standalone version of cros_resign_image.sh script from
8 # from chromeos/src/scripts/bin/ for use on signing servers. 8 # from chromeos/src/scripts/bin/ for use on signing servers.
9 9
10 # Both the cgpt tool and vbutil_kernel should be in the system path. 10 # Both the cgpt tool and vbutil_kernel should be in the system path.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 --signprivate "${kernel_datakey}" \ 50 --signprivate "${kernel_datakey}" \
51 --oldblob "${temp_kimage}" 51 --oldblob "${temp_kimage}"
52 52
53 # Create a copy of the input image and put in the new vblock 53 # Create a copy of the input image and put in the new vblock
54 cp "${src_bin}" "${dst_bin}" 54 cp "${src_bin}" "${dst_bin}"
55 dd if="${temp_out_vb}" of="${dst_bin}" seek=$koffset bs=$sector_size \ 55 dd if="${temp_out_vb}" of="${dst_bin}" seek=$koffset bs=$sector_size \
56 count=$num_sectors_vb conv=notrunc 56 count=$num_sectors_vb conv=notrunc
57 57
58 echo "New signed image was output to ${dst_bin}" 58 echo "New signed image was output to ${dst_bin}"
59 59
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