<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>928</bug_id>
          
          <creation_ts>2011-03-23 22:39:15 +0000</creation_ts>
          <short_desc>IMAGE_ROOTFS_SIZE_ext3 ignored</short_desc>
          <delta_ts>2011-03-24 10:26:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tom Zanussi">tom.zanussi</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12950</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2011-03-23 22:39:15 +0000</bug_when>
    <thetext>According to this in image.bbclass, the rootfs size should be IMAGE_ROOTFS_SIZE unless the actual size * (IMAGE_OVERHEAD_FACTOR = 1.2) is greater than that.  The IMAGE_ROOTFS_SIZE used in the comparison doesn&apos;t take the value of IMAGE_ROOTFS_SIZE_ext3 when used, as it seems it should:

ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk &apos;{size = $1 * ${IMAGE_OVERHEAD_FACTOR}; print (size &gt; ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }&apos;`

So 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 ?= &quot;1000000&quot;

instead of

IMAGE_ROOTFS_SIZE_ext3 = &quot;1000000&quot;

in emenlow.conf.

Here are the image sizes with IMAGE_ROOTFS_SIZE_ext3:

-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

Here are the image sizes with plain IMAGE_ROOTFS_SIZE:

-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

The same thing is probably true of the other variants too e.g. IMAGE_ROOTFS_SIZE_ext2 but I haven&apos;t tried those.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12955</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-03-24 05:35:06 +0000</bug_when>
    <thetext>Fixed in master in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=adac5a690fd5b4239bb59ec54e3e5174dbcf29e9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>