[oe] image.bbclass broken?

Denys Dmytriyenko denis at denix.org
Mon Feb 16 08:26:07 UTC 2009


On Sun, Feb 15, 2009 at 03:25:24PM +0100, Christian P?ssinger wrote:
> Hello, 
> 
> after a recent 'git pull' of the -dev branch I'm not able to create images.
> 
> I receive the following error:
> 
> | awk: {size = 10240 + $1; print (size > ${IMAGE_ROOTFS_SIZE} ? size :
> ${IMAGE_ROOTFS_SIZE}) }
> | awk:
> ^ syntax 
> | du: write error
> 
> Doing a grep for the line I found it:
> 
> org.openembedded.dev/classes/image.bbclass:110:
> ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = ${IMAGE_EXTRA_SPACE} + $1;
> print (size >                  ${IMAGE_ROOTFS_SIZE} ? size :
> ${IMAGE_ROOTFS_SIZE}) }'`
> 
> After replacing image.bbclass with the one from the -stable branch
> everything worked again. I run OE on an up-2-date Ubuntu Server 8.10.
> 
> Can anyone confirm this behavior?

Christian,

The change was made almost a month ago:
http://cgit.openembedded.net/cgit.cgi?url=openembedded/commit/&id=d38f1dd24dd6ed94408aa49aad33e46634a129ff
http://cgit.openembedded.net/cgit.cgi?url=openembedded/commit/&id=9d7586e655755f51be3f09f3da48147b0937c3e1

I haven't heard of anyone having any issues creating images since then.

Now, judging from the error message, I'd guess you have IMAGE_ROOTFS_SIZE 
variable undefined. Normally it is set to a default value by conf/bitbake.conf,
unless it was specifically set in one of the image recipes and/or your
local.conf...

-- 
Denys




More information about the Openembedded-devel mailing list