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 <vapier@chromium.org>
Reviewed-by: Jon Salz <jsalz@chromium.org>
Tested-by: Vadim Bendebury <vbendeb@chromium.org>
Commit-Ready: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Peter Mayo <petermayo@chromium.org>
This commit is contained in:
Vadim Bendebury 2012-09-05 15:15:13 -07:00 committed by Gerrit
parent 94d5e60654
commit 0887dc2f7a

View File

@ -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"