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

Tom Rini trini at kernel.crashing.org
Tue Jan 20 20:16:39 UTC 2009


On Tue, Jan 20, 2009 at 03:04:54PM -0500, Denys Dmytriyenko wrote:
> On Tue, Jan 20, 2009 at 04:30:07PM +0100, Marcin Juszkiewicz wrote:
> > 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).
> 
> Thanks. I wonder why it can't be also applied to ext2.gz and ext3.gz images.

Tangentally, is there a reason we can't have:
IMAGE_CMD_ext2 = "...."
IMAGE_CMD_ext2.gz = "${IMAGE_CMD_ext2} ; gzip ..."
?

-- 
Tom Rini




More information about the Openembedded-devel mailing list