[oe] [PATCH] Auto resizing ext2/ext3 images (from Poky)

Marcin Juszkiewicz openembedded at haerwu.biz
Tue Jan 20 15:30:07 UTC 2009


On Friday 05 of December 2008 18:48:06 Denys Dmytriyenko wrote:
> On Fri, Dec 05, 2008 at 05:15:41PM +0100, Marcin Juszkiewicz wrote:
> > In few words: it checks how big rootfs is, adds IMAGE_EXTRA_SPACE
> > amount of kilobytes to it and gives that size to genext2fs.
> >
> > Below is a patch with code changes. Check it and say what You think
> > about it. One thing is missing - support for fixed size ext2/3
> > images big enough to fit resulting rootfs.

> Can it be done like this:
>
> ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = ${IMAGE_EXTRA_SPACE}
> + $1; \ print (size > ${IMAGE_ROOTFS_SIZE} ? size :
> ${IMAGE_ROOTFS_SIZE}) }'`

Yes, it can - I pushed my patch and your code went too (as separate 
commit).

Regards, 
-- 
JID:      hrw at jabber.org
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz






More information about the Openembedded-devel mailing list