diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2008-12-05 17:15:41 +0100 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@koansoftware.com> | 2009-01-20 16:25:15 +0100 |
commit | d38f1dd24dd6ed94408aa49aad33e46634a129ff (patch) | |
tree | b84eb8e8860a33517fb0a1da441ddfc7938684a5 /classes | |
parent | bb7fa4bfe7064f010e4a428bcd5849bfab19e840 (diff) |
Auto resizing ext2/ext3 images (from Poky)
During my work for OpenedHand I wrote one usefull thing which we used for
ext2/ext3 images - autosizing.
In few words: it checks how big rootfs is, adds IMAGE_EXTRA_SPACE amount
of kilobytes to it and gives that size to genext2fs.
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass index e9c0ecd947..901ab340ae 100644 --- a/classes/image.bbclass +++ b/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)} ${IMAGE_POSTPROCESS_COMMAND} |