create_legacy_bootloader_templates: re-enable chromeos-vusb with --enable-rootfs_verification

This change can land once the kernel support for dm device waiting and
the chromeos-installer changes land and their ebuilds are rev'd.

TEST=build_image --enable_rootfs_verification; booted to a verified image!
BUG=chromium-os:2963

Change-Id: Ia68f90a59ab1360da01d5f422c16178af16cbaeb

Review URL: http://codereview.chromium.org/3013028
This commit is contained in:
Will Drewry 2010-07-23 12:33:57 -05:00
parent e07324f53c
commit 4f0a7f6ef1

View File

@ -99,13 +99,16 @@ EOF
info "Emitted ${SYSLINUX_DIR}/syslinux.cfg"
if [[ ${FLAGS_enable_rootfs_verification} -eq ${FLAGS_TRUE} ]]; then
# TODO(wad, tgao) enable usb vbooting with initramfs or device probing.
warn "USB booting will not use rootfs verification."
fi
# To change the active target, only this file needs to change.
cat <<EOF | sudo dd of="${SYSLINUX_DIR}/default.cfg" 2>/dev/null
# To change the active target, only this file needs to change.
cat <<EOF | sudo dd of="${SYSLINUX_DIR}/default.cfg" 2>/dev/null
DEFAULT chromeos-vusb.A
EOF
else
# To change the active target, only this file needs to change.
cat <<EOF | sudo dd of="${SYSLINUX_DIR}/default.cfg" 2>/dev/null
DEFAULT chromeos-usb.A
EOF
fi
info "Emitted ${SYSLINUX_DIR}/default.cfg"
cat <<EOF | sudo dd of="${SYSLINUX_DIR}/usb.A.cfg" 2>/dev/null