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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 184 |
185 menuentry "local image A" { | 185 menuentry "local image A" { |
186 linux \$grubpartA/boot/vmlinuz ${common_args} i915.modeset=1 cros_efi root=/de
v/\$linuxpartA | 186 linux \$grubpartA/boot/vmlinuz ${common_args} i915.modeset=1 cros_efi root=/de
v/\$linuxpartA |
187 } | 187 } |
188 | 188 |
189 menuentry "local image B" { | 189 menuentry "local image B" { |
190 linux \$grubpartB/boot/vmlinuz ${common_args} i915.modeset=1 cros_efi root=/de
v/\$linuxpartB | 190 linux \$grubpartB/boot/vmlinuz ${common_args} i915.modeset=1 cros_efi root=/de
v/\$linuxpartB |
191 } | 191 } |
192 | 192 |
193 menuentry "verified image A" { | 193 menuentry "verified image A" { |
194 linux \$grubpartA/boot/vmlinuz ${common_args} ${verity_common} i915.modeset=1
cros_efi root=/dev/dm-0 dm="DMTABLEA" | 194 linux \$grubpartA/boot/vmlinuz ${common_args} ${verity_common} i915.modeset=1
cros_efi root=/dev/dm-0 dm=\\"DMTABLEA\\" |
195 } | 195 } |
196 | 196 |
197 menuentry "verified image B" { | 197 menuentry "verified image B" { |
198 linux \$grubpartB/boot/vmlinuz ${common_args} ${verity_common} i915.modeset=1
cros_efi root=/dev/dm-0 dm="DMTABLEB" | 198 linux \$grubpartB/boot/vmlinuz ${common_args} ${verity_common} i915.modeset=1
cros_efi root=/dev/dm-0 dm=\\"DMTABLEB\\" |
199 } | 199 } |
200 | 200 |
201 # FIXME: usb doesn't support verified boot for now | 201 # FIXME: usb doesn't support verified boot for now |
202 menuentry "Alternate USB Boot" { | 202 menuentry "Alternate USB Boot" { |
203 linux (hd0,3)/boot/vmlinuz ${common_args} root=/dev/sdb3 i915.modeset=1 cros_e
fi | 203 linux (hd0,3)/boot/vmlinuz ${common_args} root=/dev/sdb3 i915.modeset=1 cros_e
fi |
204 } | 204 } |
205 EOF | 205 EOF |
206 if [[ ${FLAGS_enable_rootfs_verification} -eq ${FLAGS_TRUE} ]]; then | 206 if [[ ${FLAGS_enable_rootfs_verification} -eq ${FLAGS_TRUE} ]]; then |
207 sudo sed -i -e 's/^set default=.*/set default=2/' \ | 207 sudo sed -i -e 's/^set default=.*/set default=2/' \ |
208 "${FLAGS_to}/efi/boot/grub.cfg" | 208 "${FLAGS_to}/efi/boot/grub.cfg" |
209 fi | 209 fi |
210 info "Emitted ${FLAGS_to}/efi/boot/grub.cfg" | 210 info "Emitted ${FLAGS_to}/efi/boot/grub.cfg" |
211 exit 0 | 211 exit 0 |
212 fi | 212 fi |
213 | 213 |
214 info "The target platform does not use bootloader templates." | 214 info "The target platform does not use bootloader templates." |
OLD | NEW |