1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

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
This commit is contained in:
Marcin Juszkiewicz
2008-09-25 14:09:22 +00:00
parent 2c002e3a86
commit 6ae402ea3f
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -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