summaryrefslogtreecommitdiff
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-09-25 14:09:22 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-09-25 14:09:22 +0000
commit6ae402ea3f980278480b918e09f6766e68bdf436 (patch)
tree91be57343041af92b887f85f3f7422f6cb4a877a /meta/classes/image.bbclass
parent2c002e3a865dd34e6ccbf033e6e6ae71925a24bc (diff)
downloadopenembedded-core-6ae402ea3f980278480b918e09f6766e68bdf436.tar.gz
openembedded-core-6ae402ea3f980278480b918e09f6766e68bdf436.tar.bz2
openembedded-core-6ae402ea3f980278480b918e09f6766e68bdf436.zip
image.bbclass: make ext2/ext3 images autoresize
New variable IMAGE_EXTRA_SPACE contains amount of kilobytes which has to be added to size of IMAGE_ROOTFS. Resulting size is then passed to genext2fs util. As a result we do not have to specify size for ROOTFS_SIZE anymore. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5269 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 7287232374..5af8cef837 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -107,6 +107,7 @@ fakeroot do_rootfs () {
${IMAGE_PREPROCESS_COMMAND}
+ ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{print ${IMAGE_EXTRA_SPACE} + $1}'`
${@get_imagecmds(d)}
# Run ldconfig on the image to create a valid cache