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 # --- BEGIN COMMON.SH BOILERPLATE --- | 9 # --- BEGIN COMMON.SH BOILERPLATE --- |
10 # Load common CrOS utilities. Inside the chroot this file is installed in | 10 # Load common CrOS utilities. Inside the chroot this file is installed in |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 init=/sbin/init | 160 init=/sbin/init |
161 add_efi_memmap | 161 add_efi_memmap |
162 boot=local | 162 boot=local |
163 noresume | 163 noresume |
164 noswap | 164 noswap |
165 i915.modeset=1 | 165 i915.modeset=1 |
166 cros_secure | 166 cros_secure |
167 kern_guid=%U | 167 kern_guid=%U |
168 tpm_tis.force=1 | 168 tpm_tis.force=1 |
169 tpm_tis.interrupts=0 | 169 tpm_tis.interrupts=0 |
| 170 nmi_watchdog=panic,lapic |
170 EOF | 171 EOF |
171 WORK="${WORK} ${FLAGS_working_dir}/config.txt" | 172 WORK="${WORK} ${FLAGS_working_dir}/config.txt" |
172 | 173 |
173 # We sign the image with the recovery_key, because this is what goes onto the | 174 # We sign the image with the recovery_key, because this is what goes onto the |
174 # USB key. We can only boot from the USB drive in recovery mode. | 175 # USB key. We can only boot from the USB drive in recovery mode. |
175 # For dev install shim, we need to use the installer keyblock instead of | 176 # For dev install shim, we need to use the installer keyblock instead of |
176 # the recovery keyblock because of the difference in flags. | 177 # the recovery keyblock because of the difference in flags. |
177 if [ ${FLAGS_use_dev_keys} -eq ${FLAGS_TRUE} ]; then | 178 if [ ${FLAGS_use_dev_keys} -eq ${FLAGS_TRUE} ]; then |
178 USB_KEYBLOCK=installer_kernel.keyblock | 179 USB_KEYBLOCK=installer_kernel.keyblock |
179 info "DEBUG: use dev install signing key" | 180 info "DEBUG: use dev install signing key" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 info "Cleaning up temporary files: ${WORK}" | 273 info "Cleaning up temporary files: ${WORK}" |
273 rm ${WORK} | 274 rm ${WORK} |
274 rmdir ${FLAGS_working_dir} | 275 rmdir ${FLAGS_working_dir} |
275 fi | 276 fi |
276 | 277 |
277 info "Kernel partition image emitted: ${FLAGS_to}" | 278 info "Kernel partition image emitted: ${FLAGS_to}" |
278 | 279 |
279 if [[ -f ${FLAGS_rootfs_hash} ]]; then | 280 if [[ -f ${FLAGS_rootfs_hash} ]]; then |
280 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}" | 281 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}" |
281 fi | 282 fi |
OLD | NEW |