<?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>9325</bug_id>
          
          <creation_ts>2016-03-22 15:46:49 +0000</creation_ts>
          <short_desc>[meta-swupd] Copy only required bundle contents, rather than copying the entire mega image and then pruning unwanted files</short_desc>
          <delta_ts>2016-06-01 16:45:52 +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>Other YP Layers</product>
          <component>meta-swupd</component>
          <version>2.2</version>
          <rep_platform>x86</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>enhancement</bug_severity>
          <target_milestone>2.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Joshua Lock">joshuagloe</assigned_to>
          <cc>igor.stoppa</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60295</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-03-22 15:46:49 +0000</bug_when>
    <thetext>It&apos;s more efficient to copy only the files required by the bundle, rather than copying the entire mega image and then pruning unwanted files afterwards. Particular in the extreme case of a large mega image with several small bundles.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61405</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-04-19 14:33:27 +0000</bug_when>
    <thetext>I have a patch to implement this and am in the process of testing it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62095</commentid>
    <comment_count>2</comment_count>
    <who name="Igor Stoppa">igor.stoppa</who>
    <bug_when>2016-05-11 11:18:49 +0000</bug_when>
    <thetext>Any update?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62118</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-05-11 18:51:32 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Any update?

I have a partial implementation which results in `swupd verify` failures for directories on the target. I need to pick this work back up some time soon, probably next week.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62356</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-05-19 22:22:36 +0000</bug_when>
    <thetext>As part of the work on #9599 I removed most of the places where we copy the mega image rootfs and then prune unwanted contents. I&apos;ve added a follow on patch to that work which removes the final user of that pattern and the two functions which support it.

I expect to merge this some time next week after further testing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62567</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-06-01 16:45:52 +0000</bug_when>
    <thetext>With the rearchitecture of swupd-image.bbclass that just landed in meta-swupd master there are now fewer copies made, the final copy/prune usages were removed in:

http://git.yoctoproject.org/cgit/cgit.cgi/meta-swupd/commit/?id=5e6ef822c20a34b2db72cc626cf442dac97f5bcc</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>