Ed Bartosh <ed.bart...@linux.intel.com> writes: >> The --extra-space and --overhead option did not had an effect to squashfs >> partitions. Although squashfs is read-only, it can be useful to allocate >> more space for the on-disk partition to avoid repartitioning of the whole >> disk when a new (and larger) squashfs image is written on later updates. > > Is it possible to just use --size or --fixed-size in .wks to allocate > partition of certain size?
--fixed-size works with this patch (tested); --size should work. >> + def __extend_rootfs_image(self, rootfs): > > Do we really need to mangle name of this method? ok; I will make it _extend_rootfs_image > As this function is not going to be used anywhere I'd just use this > code in prepare_rootfs_squashfs. It would be less generic, but much > more readable and understandable. I would keep it as is. It is a non trivial function which is reusable. Perhaps, somebody adds CRAMFS or another file system which does not support extending its size. partition.py is full of redundant code (look for all the "du" calls or generally at the beginning of the prepare_rootfs_*() methods) where probably somebody thought that it is not going to be used anywhere else ;) Enrico -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core