Skip to contentSkip to conversation

image.bbclass broken?

DISCUSSION Christian Pössinger 2 participants 2 messages Feb 15, 2009 – Feb 16, 2009

lore
Share & tools
lore
#0 lore raw

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?

Best Regards
Christian Pössinger

#1 lore raw
Quoted 19 lines · Christian P?ssinger

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}) }'`

Quoted 4 lines

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...

Signature · 1 line
Denys