Add cros_factory_install kernel command-line argument when running

the factory install shim.

BUG=chrome-os-partner:6535
TEST=Ran factory install shim on Alex and in VM

Change-Id: I32761736d8565d16323c6962058b478511a3ee8c
Reviewed-on: http://gerrit.chromium.org/gerrit/10398
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Tested-by: Jon Salz <jsalz@chromium.org>
Commit-Ready: Jon Salz <jsalz@chromium.org>
This commit is contained in:
Jon Salz 2011-10-20 14:05:06 +08:00 committed by Gerrit
parent 84a4c7a620
commit 67145df2a4

View File

@ -132,16 +132,20 @@ to True."
fi fi
fi fi
# Reduce the size of factory install shim. # Tweak flags for factory install.
if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ]; then if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ]; then
# TODO: Build a separated ebuild for the install shim to reduce size. # TODO: Build a separated ebuild for the install shim to reduce size.
INSTALL_MASK="${INSTALL_MASK} ${FACTORY_INSTALL_MASK}" INSTALL_MASK="${INSTALL_MASK} ${FACTORY_INSTALL_MASK}"
# Reduce the size of factory install shim.
info "Fixing the rootfs size at 300 MiB for install shim" info "Fixing the rootfs size at 300 MiB for install shim"
FLAGS_rootfs_size=280 FLAGS_rootfs_size=280
FLAGS_rootfs_partition_size=300 FLAGS_rootfs_partition_size=300
info "Fixing the statefulfs size at 140 MiB for install shim" info "Fixing the statefulfs size at 140 MiB for install shim"
FLAGS_statefulfs_size=140 FLAGS_statefulfs_size=140
# Add the cros_factory_install boot arg.
FLAGS_boot_args="${FLAGS_boot_args} cros_factory_install"
fi fi
if [ $((FLAGS_rootfs_size + FLAGS_rootfs_hash_pad)) -gt \ if [ $((FLAGS_rootfs_size + FLAGS_rootfs_hash_pad)) -gt \