Skip to content

RFC IMAGE_ROOTFS_SIZE Cleanup

Saul Wold openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2IMAGE_ROOTFS_SIZE Cleanupmeta/classes/image_types.bbclass meta/conf/distro/include/default-distrovars.inc meta/conf/machine/include/qemu.inc +2 more+9 -614 replies
2/2image_types: add IMAGE_ROOTFS_EXTRA_SPACEmeta/classes/image_types.bbclass meta/conf/bitbake.conf+5 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] IMAGE_ROOTFS_SIZE Cleanup

This RFC is still in the works, I would like to have folks look at it.

Previously, IMAGE_ROOTFS_SIZE was being set with _ext2 or _ext3 in various places, this caused problem, because it was not easily overriden. By removing all the overrides, it allows the default mechanism to work correctly.

Currently that default mechanism takes a du of the rootfs image and then adds in an overhead factor (IMAGE_OVERHEAD_FACTOR) or 1.3x of the du size, in most cases this should be sufficent. I am still testing this, and I heard that there might be a post-install issue with RPM DB being larger.

This additional addresses a couple of other issues, by clearing all the bad overrides, it allows Image or Layer overrides to work correctly either by setting IMAGE_ROOTFS_SIZE to some arbitray number or by allowing some extra space be added above the existing overhead via the IMAGE_ROOTFS_EXTRA_SPACE option.

The base default is now 64M (maybe I need to only set the one in bitbake.conf, comments abou tthat?) with the minimal images base as 8M (currently qemux86 sizes up to 9.9M used on an 11M rootfs).

There will be a corresponding patch for meta-yocto to remove the IMAGE_ROOTFS_SIZE defaults in atom-pc.conf and routerstationpro.conf

I welcome comments.

Thanks
Sau!

The following changes since commit ad72ffadca975166cd8a416e4bf7b7fe33616d39:

Merge branch 'master', remote-tracking branch 'origin/master' (2011-05-23 23:00:20 +0100)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib.git sgw/rootfs_size
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=sgw/rootfs_size

Saul Wold (2):
IMAGE_ROOTFS_SIZE Cleanup
image_types: add IMAGE_ROOTFS_EXTRA_SPACE

 meta/classes/image_types.bbclass                   |    9 ++++++---
 meta/conf/bitbake.conf                             |    4 ++++
 meta/conf/distro/include/default-distrovars.inc    |    2 --
 meta/conf/machine/include/qemu.inc                 |    2 --
 .../images/core-image-minimal-initramfs.bb         |    2 ++
 meta/recipes-core/images/core-image-minimal.bb     |    2 ++
 6 files changed, 14 insertions(+), 7 deletions(-)
Signature · 1 line
1.7.3.4