[oe] [PATCH] bitbake.conf: use ROOTFS_SIZE for gzip'd images
Roman I Khimov
khimov at altell.ru
Thu Apr 23 10:47:35 UTC 2009
On Thursday 23 April 2009 14:26:55 Leon Woestenberg wrote:
> On Wed, Apr 22, 2009 at 6:59 AM, Roman I Khimov <khimov at altell.ru> wrote:
> > IMAGE_EXTRA_SPACE was brought into OE with commit
> > d38f1dd24dd6ed94408aa49aad33e46634a129ff, see comment for that. This one
> > just fixes it for compressed images.
>
> Hmm, this part runs on the host:
>
> ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}
>
> Would this correctly work if my host has a, say 16kB block, XFS
> filesystem? I.e. would "du -ks" correctly estimate the amount of
> ext2/3 blocks needed to layout the rootfs on ext2/3?
Well, my 'du' manual says
-k like --block-size=1K
So it's just kilobytes or at least should be so. And in genext2fs there is
#define BLOCKSIZE 1024
For its "-b".
More information about the Openembedded-devel
mailing list