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