From 67145df2a4aaf63bc31cd30e38d37fc78b1d8fd1 Mon Sep 17 00:00:00 2001 From: Jon Salz Date: Thu, 20 Oct 2011 14:05:06 +0800 Subject: [PATCH] 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 Reviewed-by: David James Reviewed-by: Richard Barnette Tested-by: Jon Salz Commit-Ready: Jon Salz --- build_image | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build_image b/build_image index ecddc804ac..9b504cc82a 100755 --- a/build_image +++ b/build_image @@ -132,16 +132,20 @@ to True." fi fi -# Reduce the size of factory install shim. +# Tweak flags for factory install. if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ]; then # TODO: Build a separated ebuild for the install shim to reduce size. 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" FLAGS_rootfs_size=280 FLAGS_rootfs_partition_size=300 info "Fixing the statefulfs size at 140 MiB for install shim" FLAGS_statefulfs_size=140 + + # Add the cros_factory_install boot arg. + FLAGS_boot_args="${FLAGS_boot_args} cros_factory_install" fi if [ $((FLAGS_rootfs_size + FLAGS_rootfs_hash_pad)) -gt \