<?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>886</bug_id>
          
          <creation_ts>2011-03-16 08:30:01 +0000</creation_ts>
          <short_desc>Consider allowing images to request a set amount of free space be available in the generated image</short_desc>
          <delta_ts>2011-07-25 08:21:40 +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>configuration</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock - Disabled">josh</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>bluelightning</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>12699</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-03-16 08:30:01 +0000</bug_when>
    <thetext>When preparing a demo against Bernard my sato based images where filling the disk before the post-install&apos;s had even finished running on first boot.

The purpose of this bug is two fold, first I&apos;d suggest that the default IMAGE_OVERHEAD_FACTOR of 1.2 is probably too low for anything other than minimal. A Sato image for emenlow has only 5% free disk space by the time it has finished first boot.

Secondly I wonder if we can introduce a new variable to specify a certain amount of space be available on the image, or even that the image be created to match a certain size.

For example is there a reason why an image which a user knows will always be installed onto a 3GB disk couldn&apos;t be created to fill that entire 3GB?

I&apos;m purposefully trying to start a discussion here, I don&apos;t know the answer...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13283</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-04-14 16:15:56 +0000</bug_when>
    <thetext>Is setting an IMAGE_ROOTFS_SIZE or ROOTFS_SIZE override not sufficient (I have not experimented with this yet).  It seems like you should be able to change the ROOTFS_SIZE to a ?= instead of = and that will all you to override the computation.

If we are having a discussion here, then the another way might be to change the meaning of IMAGE_ROOTFS_SIZE to maximum size and not minimum when the actual size is greater than the IMAGE_ROOTFS_SIZE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13291</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-04-14 19:53:32 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Is setting an IMAGE_ROOTFS_SIZE or ROOTFS_SIZE override not sufficient (I have
&gt; not experimented with this yet).  It seems like you should be able to change
&gt; the ROOTFS_SIZE to a ?= instead of = and that will all you to override the
&gt; computation.

The problem here is that I do not know how large the rootfs is going to be before creating the image.

&gt; If we are having a discussion here, then the another way might be to change the
&gt; meaning of IMAGE_ROOTFS_SIZE to maximum size and not minimum when the actual
&gt; size is greater than the IMAGE_ROOTFS_SIZE.

I&apos;m not convinced about this. Changing behaviour based on a factor the user can&apos;t easily determine seems like a bad idea.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13301</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-04-15 10:59:21 +0000</bug_when>
    <thetext>Ok then, maybe back to adding a variable such as ROOTFS_EXTRA_SIZE or EXTRA_IMAGE_SIZE (or some concoction) that adds that amount of space to the ROOTFS_SIZE when it&apos;s computed via the du.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13303</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-04-15 11:55:42 +0000</bug_when>
    <thetext>Sounds good, that&apos;s the sort of thing I was thinking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13978</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-05-25 10:25:18 +0000</bug_when>
    <thetext>
The following commit adds IMAGE_ROOTFS_EXTRA_SPACE which is given in Kilobytes. There are also chances now in place that allow for the proper over ride of IMAGE_ROOTFS_SIZE to allow an arbitrary size, if that size is too small the IMAGE_OVERHEAD_FACTOR will kick in. 

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a3d6defd6365b6eae717bcf3568916306650db8a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14975</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-07-25 08:21:40 +0000</bug_when>
    <thetext>Verify fixed</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>