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

Side by Side Diff: build_kernel_image.sh

Issue 3035020: Add "kern_guid=%U" to the secure boot kernel command-line template. (Closed) Base URL: ssh://git@chromiumos-git//crosutils.git
Patch Set: Created 10 years, 5 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
« 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 # 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
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
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
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