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

Side by Side Diff: create_legacy_bootloader_templates.sh

Issue 3013028: create_legacy_bootloader_templates: re-enable chromeos-vusb with --enable-rootfs_verification (Closed) Base URL: http://src.chromium.org/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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 # chromeos-hd.A / chromeos-vhd.A 93 # chromeos-hd.A / chromeos-vhd.A
94 include /syslinux/root.A.cfg 94 include /syslinux/root.A.cfg
95 95
96 # chromeos-hd.B / chromeos-vhd.B 96 # chromeos-hd.B / chromeos-vhd.B
97 include /syslinux/root.B.cfg 97 include /syslinux/root.B.cfg
98 EOF 98 EOF
99 info "Emitted ${SYSLINUX_DIR}/syslinux.cfg" 99 info "Emitted ${SYSLINUX_DIR}/syslinux.cfg"
100 100
101 if [[ ${FLAGS_enable_rootfs_verification} -eq ${FLAGS_TRUE} ]]; then 101 if [[ ${FLAGS_enable_rootfs_verification} -eq ${FLAGS_TRUE} ]]; then
102 # TODO(wad, tgao) enable usb vbooting with initramfs or device probing. 102 # To change the active target, only this file needs to change.
103 warn "USB booting will not use rootfs verification." 103 cat <<EOF | sudo dd of="${SYSLINUX_DIR}/default.cfg" 2>/dev/null
104 fi 104 DEFAULT chromeos-vusb.A
105 # To change the active target, only this file needs to change. 105 EOF
106 cat <<EOF | sudo dd of="${SYSLINUX_DIR}/default.cfg" 2>/dev/null 106 else
107 # To change the active target, only this file needs to change.
108 cat <<EOF | sudo dd of="${SYSLINUX_DIR}/default.cfg" 2>/dev/null
107 DEFAULT chromeos-usb.A 109 DEFAULT chromeos-usb.A
108 EOF 110 EOF
111 fi
109 info "Emitted ${SYSLINUX_DIR}/default.cfg" 112 info "Emitted ${SYSLINUX_DIR}/default.cfg"
110 113
111 cat <<EOF | sudo dd of="${SYSLINUX_DIR}/usb.A.cfg" 2>/dev/null 114 cat <<EOF | sudo dd of="${SYSLINUX_DIR}/usb.A.cfg" 2>/dev/null
112 label chromeos-usb.A 115 label chromeos-usb.A
113 menu label chromeos-usb.A 116 menu label chromeos-usb.A
114 kernel vmlinuz.A 117 kernel vmlinuz.A
115 append ${common_args} root=${FLAGS_usb_disk} i915.modeset=1 cros_legacy 118 append ${common_args} root=${FLAGS_usb_disk} i915.modeset=1 cros_legacy
116 119
117 label chromeos-vusb.A 120 label chromeos-vusb.A
118 menu label chromeos-vusb.A 121 menu label chromeos-vusb.A
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 EOF 196 EOF
194 if [[ ${FLAGS_enable_rootfs_verification} -eq ${FLAGS_TRUE} ]]; then 197 if [[ ${FLAGS_enable_rootfs_verification} -eq ${FLAGS_TRUE} ]]; then
195 sudo sed -i -e 's/^set default=.*/set default=2/' \ 198 sudo sed -i -e 's/^set default=.*/set default=2/' \
196 "${FLAGS_to}/efi/boot/grub.cfg" 199 "${FLAGS_to}/efi/boot/grub.cfg"
197 fi 200 fi
198 info "Emitted ${FLAGS_to}/efi/boot/grub.cfg" 201 info "Emitted ${FLAGS_to}/efi/boot/grub.cfg"
199 exit 0 202 exit 0
200 fi 203 fi
201 204
202 info "The target platform does not use bootloader templates." 205 info "The target platform does not use bootloader templates."
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