mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
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 <rongchang@chromium.org> Commit-Ready: Hung-Te Lin <hungte@chromium.org> Tested-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
parent
c8f910a860
commit
7119cb1499
10
build_image
10
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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user