| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 rootwait | 139 rootwait |
| 140 ro | 140 ro |
| 141 noresume | 141 noresume |
| 142 noswap | 142 noswap |
| 143 i915.modeset=1 | 143 i915.modeset=1 |
| 144 loglevel=1 | 144 loglevel=1 |
| 145 cros_secure | 145 cros_secure |
| 146 kern_guid=%U | 146 kern_guid=%U |
| 147 tpm_tis.force=1 | 147 tpm_tis.force=1 |
| 148 tpm_tis.interrupts=0 | 148 tpm_tis.interrupts=0 |
| 149 nmi_watchdog=1 |
| 149 EOF | 150 EOF |
| 150 WORK="${WORK} ${FLAGS_working_dir}/config.txt" | 151 WORK="${WORK} ${FLAGS_working_dir}/config.txt" |
| 151 | 152 |
| 152 # We sign the image with the recovery_key, because this is what goes onto the | 153 # We sign the image with the recovery_key, because this is what goes onto the |
| 153 # USB key. We can only boot from the USB drive in recovery mode. | 154 # USB key. We can only boot from the USB drive in recovery mode. |
| 154 # For dev install shim, we need to use the installer keyblock instead of | 155 # For dev install shim, we need to use the installer keyblock instead of |
| 155 # the recovery keyblock because of the difference in flags. | 156 # the recovery keyblock because of the difference in flags. |
| 156 if [ ${FLAGS_use_dev_keys} -eq ${FLAGS_TRUE} ]; then | 157 if [ ${FLAGS_use_dev_keys} -eq ${FLAGS_TRUE} ]; then |
| 157 USB_KEYBLOCK=installer_kernel.keyblock | 158 USB_KEYBLOCK=installer_kernel.keyblock |
| 158 info "DEBUG: use dev install signing key" | 159 info "DEBUG: use dev install signing key" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 info "Cleaning up temporary files: ${WORK}" | 252 info "Cleaning up temporary files: ${WORK}" |
| 252 rm ${WORK} | 253 rm ${WORK} |
| 253 rmdir ${FLAGS_working_dir} | 254 rmdir ${FLAGS_working_dir} |
| 254 fi | 255 fi |
| 255 | 256 |
| 256 info "Kernel partition image emitted: ${FLAGS_to}" | 257 info "Kernel partition image emitted: ${FLAGS_to}" |
| 257 | 258 |
| 258 if [[ -f ${FLAGS_rootfs_hash} ]]; then | 259 if [[ -f ${FLAGS_rootfs_hash} ]]; then |
| 259 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}" | 260 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}" |
| 260 fi | 261 fi |
| OLD | NEW |