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 # Helper script that generates the signed kernel image | 7 # Helper script that generates the signed kernel image |
8 | 8 |
9 . "$(dirname "$0")/common.sh" | 9 . "$(dirname "$0")/common.sh" |
10 | 10 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 init=/sbin/init | 121 init=/sbin/init |
122 add_efi_memmap | 122 add_efi_memmap |
123 boot=local | 123 boot=local |
124 rootwait | 124 rootwait |
125 ro | 125 ro |
126 noresume | 126 noresume |
127 noswap | 127 noswap |
128 i915.modeset=1 | 128 i915.modeset=1 |
129 loglevel=7 | 129 loglevel=7 |
130 cros_secure | 130 cros_secure |
| 131 kern_guid=%U |
131 EOF | 132 EOF |
132 WORK="${WORK} ${FLAGS_working_dir}/config.txt" | 133 WORK="${WORK} ${FLAGS_working_dir}/config.txt" |
133 | 134 |
134 # We sign the image with the recovery_key, because this is what goes onto the | 135 # We sign the image with the recovery_key, because this is what goes onto the |
135 # USB key. We can only boot from the USB drive in recovery mode. | 136 # USB key. We can only boot from the USB drive in recovery mode. |
136 | 137 |
137 # Create and sign the kernel blob | 138 # Create and sign the kernel blob |
138 vbutil_kernel \ | 139 vbutil_kernel \ |
139 --pack "${FLAGS_to}" \ | 140 --pack "${FLAGS_to}" \ |
140 --keyblock "${FLAGS_keys_dir}/recovery_kernel.keyblock" \ | 141 --keyblock "${FLAGS_keys_dir}/recovery_kernel.keyblock" \ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 info "Cleaning up temporary files: ${WORK}" | 189 info "Cleaning up temporary files: ${WORK}" |
189 rm ${WORK} | 190 rm ${WORK} |
190 rmdir ${FLAGS_working_dir} | 191 rmdir ${FLAGS_working_dir} |
191 fi | 192 fi |
192 | 193 |
193 info "Kernel partition image emitted: ${FLAGS_to}" | 194 info "Kernel partition image emitted: ${FLAGS_to}" |
194 | 195 |
195 if [[ -f ${FLAGS_rootfs_hash} ]]; then | 196 if [[ -f ${FLAGS_rootfs_hash} ]]; then |
196 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}" | 197 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}" |
197 fi | 198 fi |
OLD | NEW |