mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 07:31:01 +02:00
Use initramfs on x86 but not on arm for factory install image.
On x86, booting factory install shim on SD card needs to have the kernel initrmafs enabled. But on ARM, booting factory install image on network does not needs initramfs. TEST=build_image --factory_install BUG=chromium-os:13211 Change-Id: Id008a3bfaf4f17772e04f02d18844dd09b33fbe1 R=rongchang@chromium.org Review URL: http://codereview.chromium.org/6901047
This commit is contained in:
parent
e388e18b67
commit
a6af201ff8
12
build_image
12
build_image
@ -190,10 +190,16 @@ OVERLAY_CHROMEOS_DIR="${SRC_ROOT}/third_party/chromiumos-overlay/chromeos/"
|
|||||||
# Configure extra USE or packages for this type of build.
|
# Configure extra USE or packages for this type of build.
|
||||||
EXTRA_PACKAGES=""
|
EXTRA_PACKAGES=""
|
||||||
if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ] ; then
|
if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ] ; then
|
||||||
# Factory install needs to have the kernel initrmafs enabled,
|
# Factory install needs to have the factory installer added.
|
||||||
# and the factory installer added.
|
|
||||||
EXTRA_PACKAGES="${EXTRA_PACKAGES} chromeos-base/chromeos-factoryinstall"
|
EXTRA_PACKAGES="${EXTRA_PACKAGES} chromeos-base/chromeos-factoryinstall"
|
||||||
export USE="${USE} fbconsole initramfs"
|
# On x86, booting factory install shim on SD card needs to have the kernel
|
||||||
|
# initrmafs enabled. On ARM, booting factory install image on network does
|
||||||
|
# not needs initramfs. Force to enable fbconsole to fix a display driver bug.
|
||||||
|
if [ ${ARCH} -eq "arm" ] ; then
|
||||||
|
export USE="${USE} fbconsole"
|
||||||
|
else
|
||||||
|
export USE="${USE} initramfs"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
emerge_to_image() {
|
emerge_to_image() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user