From 7b6d5036f5684aba1f1e4e676710bcc93e9881d1 Mon Sep 17 00:00:00 2001 From: Tan Gao Date: Mon, 23 Aug 2010 08:17:48 -0700 Subject: [PATCH] Issue 5183: reduce dev install shim size Change-Id: I7722848872b1712b26c38ac8f163d450c5a08f6d BUG=chromium-os:5183 TEST=manually built a dev install shim and verified it's bootable on agz device Review URL: http://codereview.chromium.org/3158021 --- build_image | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/build_image b/build_image index 62768a5960..90e2b1e695 100755 --- a/build_image +++ b/build_image @@ -655,13 +655,20 @@ if [[ $FLAGS_preserve -eq ${FLAGS_TRUE} ]] ; then fi fi -# Minimize rootfs size for dev install shim and factory installer -if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} -o \ - ${FLAGS_dev_install} -eq ${FLAGS_TRUE} ] ; then +# Minimize rootfs size for factory installer +if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ]; then info "Fixing the rootfs size at 300 MiB for the factory installer" FLAGS_rootfs_size=300 fi +# Minimize rootfs size and statefulfs size for dev install shim +if [ ${FLAGS_dev_install} -eq ${FLAGS_TRUE} ] ; then + info "Fixing the rootfs size at 300 MiB for dev install shim" + FLAGS_rootfs_size=300 + info "Fixing the statefulfs size at 140 MiB for dev install shim" + FLAGS_statefulfs_size=140 +fi + # Create the boot.desc file which stores the build-time configuration # information needed for making the image bootable after creation with # cros_make_image_bootable.