diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-09-25 14:09:22 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-09-25 14:09:22 +0000 |
commit | 6ae402ea3f980278480b918e09f6766e68bdf436 (patch) | |
tree | 91be57343041af92b887f85f3f7422f6cb4a877a /meta/classes/image.bbclass | |
parent | 2c002e3a865dd34e6ccbf033e6e6ae71925a24bc (diff) | |
download | poky-6ae402ea3f980278480b918e09f6766e68bdf436.tar.gz |
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.bbclass | 1 |
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 () { | |||
107 | 107 | ||
108 | ${IMAGE_PREPROCESS_COMMAND} | 108 | ${IMAGE_PREPROCESS_COMMAND} |
109 | 109 | ||
110 | ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{print ${IMAGE_EXTRA_SPACE} + $1}'` | ||
110 | ${@get_imagecmds(d)} | 111 | ${@get_imagecmds(d)} |
111 | 112 | ||
112 | # Run ldconfig on the image to create a valid cache | 113 | # Run ldconfig on the image to create a valid cache |