[poky] Making live images bigger
Tom Zanussi
tom.zanussi at intel.com
Tue Mar 22 00:39:14 PDT 2011
On Mon, 2011-03-21 at 12:00 -0700, Gary Thomas wrote:
> I'm running a live (USB) image on my Atom-PC and would like to
> install more programs. Now that I've figured out the magic to
> use zypper and rpm (thanks, Mark), I have a new problem. The
> image on the USB device is too small - basically no free space :-(
>
> So, I tried to adjust this by setting:
> /tmp/poky-amltd/meta-yocto/conf/machine/atom-pc.conf:IMAGE_ROOTFS_SIZE_ext3 ?= "1000000"
> which I think should give me a 1GB USB setup. Sadly, the result was exactly the
> same size as when I ran it with the default size.
>
> Any ideas what I'm doing wrong? I edited the config as above, then simply ran
> % bitbake poky-image-sato-live
> I can see that it rebuilt the images, but they're just too small still.
>
According to this in image.bbclass, the size should end up with 20% free
space (IMAGE_OVERHEAD_FACTOR = 1.2) regardless.
ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = $1 * ${IMAGE_OVERHEAD_FACTOR}; print (size > ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }'`
But in any case, IMAGE_ROOTFS_SIZE_ext3 seems to be getting ignored -
the only way I was able to get a 1G image was to use the straight
IMAGE_ROOTFS_SIZE e.g. using
IMAGE_ROOTFS_SIZE ?= "1000000"
instead of
IMAGE_ROOTFS_SIZE_ext3 = "2000000"
in emenlow.conf. The image sizes before and after:
-rw-r--r-- 1 trz trz 582105088 2011-03-22 01:58 poky-image-sato-live-emenlow-20110322065226.hddimg
-rw-r--r-- 1 trz trz 581939200 2011-03-22 01:58 poky-image-sato-live-emenlow-20110322065226.iso
-rw-r--r-- 1 trz trz 1032947712 2011-03-22 02:21 poky-image-sato-live-emenlow-20110322071321.hddimg
-rw-r--r-- 1 trz trz 1032779776 2011-03-22 02:21 poky-image-sato-live-emenlow-20110322071321.iso
But 1000000 is half of what the default is supposed to in the first
place - if it was working correctly, it should have gotten 2Gb by
default apparently...
Tom
> Thanks
>
More information about the poky
mailing list