<?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>7132</bug_id>
          
          <creation_ts>2015-01-13 15:17:07 +0000</creation_ts>
          <short_desc>wic not respecting --size parameter when file system contents larger than requested size</short_desc>
          <delta_ts>2015-04-04 14:14:55 +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>OE-Core</product>
          <component>deployment</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Phlip Balister">philip</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>sgw</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47886</commentid>
    <comment_count>0</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2015-01-13 15:17:07 +0000</bug_when>
    <thetext>So I am working on an image for a 4GB sd card. I want to use the --size parameters on the partitions to control how large the sd card image gets, without it going over a size that can reliably fit on a 4GB SD card (4G is not 4G in SD card space)

After some tests, I tried:

part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4 --size 1


For the root partition. The result was an SD card with a root partition sized based on the contents of the rootfs.

The desired behavior is for wic to exit with an error letting the user know the image will be larger than requested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50085</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-04 14:14:55 +0000</bug_when>
    <thetext>This doesn&apos;t look like a bug to me as --size option is to specify minimum partition size. Here is the quote from wic kickstart reference explaining that:

  --size: The minimum partition size. Specify an integer value
          such as 500. Multipliers k, M ang G can be used. If
          not specified, the size is in MB.
          You do not need this option if you use --source.

However, adding new command line option to specify maximum partition size does make sense from my point of view. Please, create another bugzilla issue if you still need it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>