From 0887dc2f7a6b52475751bbb3b750a62135f7e2ab Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Wed, 5 Sep 2012 15:15:13 -0700 Subject: [PATCH] Allow more room for factory shim rootfs For reasons yet to be determined the factory shim rootfs size spills over allotted 300 MBytes. The actual culprit will have to be determined and hopefully eliminated, at the time the lower size could be restored by reverting this change. BUG=chromium-os:34167 TEST=manual ./build_image --board=amd64-generic factory_install was failing before this change and is succeeding now Change-Id: I01456f8317b0d02968068f609811c36d4816f353 Reviewed-on: https://gerrit.chromium.org/gerrit/32298 Reviewed-by: Mike Frysinger Reviewed-by: Jon Salz Tested-by: Vadim Bendebury Commit-Ready: Vadim Bendebury Reviewed-by: Peter Mayo --- build_image | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/build_image b/build_image index ed9600b4ce..f0a19cfeb6 100755 --- a/build_image +++ b/build_image @@ -143,12 +143,15 @@ if should_build_image ${CHROMEOS_FACTORY_INSTALL_SHIM_NAME}; then # TODO: Build a separated ebuild for the install shim to reduce size. INSTALL_MASK="${FACTORY_SHIM_INSTALL_MASK}" - # Reduce the size of factory install shim. - info "Fixing the rootfs size at 320 MiB for install shim" - FLAGS_rootfs_size=300 - FLAGS_rootfs_partition_size=320 - info "Fixing the statefulfs size at 140 MiB for install shim" + # Reduce the size of factory install shim. Note that 400M is too much, it + # should be smaller, see http://crosbug.com/34167 + FLAGS_rootfs_size=400 + FLAGS_rootfs_partition_size=420 FLAGS_statefulfs_size=140 + info "Fixing the rootfs size at ${FLAGS_rootfs_partition_size} MiB " \ + "for install shim" + info "Fixing the statefulfs size at ${FLAGS_statefulfs_size} MiB " \ + "for install shim" # Add the cros_factory_install boot arg. FLAGS_boot_args="${FLAGS_boot_args} cros_factory_install"