From 7119cb14995e03cd2a0699788d1b219867afdbd1 Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Wed, 7 Mar 2012 22:29:13 +0800 Subject: [PATCH] build_image: Enable initramfs for factory install shims on amd64. On both x86 and x64(amd64) platforms, we should enable initramfs for factory install shim so that partner can remove shim. BUG=chrome-os-partner:8376 TEST=./build_image --board lXXk --factory_install # pass, bootable with initramfs Change-Id: Ibbb3f71fc287d2db2c9245e11ce5a00cbc353c3a Reviewed-on: https://gerrit.chromium.org/gerrit/17472 Reviewed-by: Rong Chang Commit-Ready: Hung-Te Lin Tested-by: Hung-Te Lin --- build_image | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build_image b/build_image index 3783351ea8..8e293c8b97 100755 --- a/build_image +++ b/build_image @@ -137,11 +137,11 @@ if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ]; then # Factory install needs to have the factory installer added. EXTRA_PACKAGES="${EXTRA_PACKAGES} chromeos-base/chromeos-factoryinstall" - # On x86, we boot the factory install shim from an SD card using - # initramfs for our root. On ARM, we boot the factory install shim - # over the network, so we don't require initramfs, but we do require - # fbconsole to fix a display driver bug. - if [ "${ARCH}" = "x86" ] ; then + # On x86/amd64, we boot the factory install shim from an SD card using + # initramfs for our root. On ARM, we boot the factory install shim over the + # network, so we don't require initramfs, but we do require fbconsole to fix + # a display driver bug. + if [ "${ARCH}" = "x86" -o "${ARCH}" = "amd64" ] ; then export USE="${USE} initramfs" fi # CONFIG_BLK_DEV_RAM is disabled by default.