<?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>7573</bug_id>
          
          <creation_ts>2015-04-07 14:26:46 +0000</creation_ts>
          <short_desc>Wic hangs creating an SD card image</short_desc>
          <delta_ts>2015-09-16 09:40:32 +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>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.9 M1</target_milestone>
          
          <blocked>8309</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Phlip Balister">philip</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>alexandru.c.georgescu</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>eduard.bartosh</cc>
          
          <qa_contact name="Daniel Istrate">daniel.alexandrux.istrate</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50115</commentid>
    <comment_count>0</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2015-04-07 14:26:46 +0000</bug_when>
    <thetext>Rerunning wic to build a new image (after making one already) hangs unless you manually remove the wic build directory. It appears that mcopy is left running at 100% cpu.

Reverting 2d3c9f89852bd009fc7accee495ede2fbcadc3bb 
 wic: bootimg-partition: Stop removing whole workdir

Resolves the problem. Alexandre discussed this briefly on the list, but it appears the resolution was dropped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50325</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-15 21:09:44 +0000</bug_when>
    <thetext>Can you show me wic commandline? I can&apos;t reproduce this with &quot;wic create directdisk -e core-image-minimal&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50328</commentid>
    <comment_count>2</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2015-04-15 21:42:16 +0000</bug_when>
    <thetext>wic create ../meta-sdr/contrib/wks/sdimage-8G.wks  -e gnuradio-demo-image -o images/$MACHINE

Something like that. Also check with A Belloni, I&apos;m pretty sure he has an idea. His contact info should be i the commit log.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50368</commentid>
    <comment_count>3</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-16 22:08:07 +0000</bug_when>
    <thetext>Works just fine for me:

$ time wic create ../../meta-sdr/contrib/wks/sdimage-8G.wks  -e gnuradio-demo-image -o images/$MACHINE
Checking basic build environment...
Done.

Creating image(s)...

Info: The new image(s) can be found here:
  images/build/sdimage-8G-201504170100-mmcblk.direct

The following build artifacts were used to create the image(s):
  ROOTFS_DIR:                   /home/ed/git/yocto/poky/build-gnuradio-demo-image/tmp/work/qemux86-poky-linux/gnuradio-demo-image/1.0-r0/rootfs
  BOOTIMG_DIR:
  KERNEL_DIR:                   /home/ed/git/yocto/poky/build-gnuradio-demo-image/tmp/deploy/images/qemux86
  NATIVE_SYSROOT:               /home/ed/git/yocto/poky/build-gnuradio-demo-image/tmp/sysroots/x86_64-linux


The image(s) were created using OE kickstart file:
  ../../meta-sdr/contrib/wks/sdimage-8G.wks

real    1m22.049s
user    0m16.440s
sys     0m40.332s

$ ls -lh images/build/sdimage-8G-201504170100-mmcblk.direct
-rw-r--r-- 1 ed users 7.0G Apr 17 01:01 images/build/sdimage-8G-201504170100-mmcblk.direct


Please, provide more info.

Wild guess: the reason could be caused by mcopy from your distro and was fixed by fa263f238bbddb00c9953994fb69cc358170e2ec
    wic: don&apos;t use host paths when looking for native tools

Can you try if it&apos;s still reproduceable with current master?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50369</commentid>
    <comment_count>4</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2015-04-16 22:11:02 +0000</bug_when>
    <thetext>Current master fails to run at all. I filed a bug for this.

Did you run the command twice?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50375</commentid>
    <comment_count>5</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-17 08:17:13 +0000</bug_when>
    <thetext>current master worked for me.

yes, I run wic twice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50384</commentid>
    <comment_count>6</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-17 13:26:11 +0000</bug_when>
    <thetext>you should be able to run wic after applying this fix: http://lists.openembedded.org/pipermail/openembedded-core/2015-April/103837.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50492</commentid>
    <comment_count>7</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-23 19:05:54 +0000</bug_when>
    <thetext>Any news? Is it still reproducible?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50545</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2015-04-27 23:38:33 +0000</bug_when>
    <thetext>This should be fixed with:
http://lists.openembedded.org/pipermail/openembedded-core/2015-April/104199.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50587</commentid>
    <comment_count>9</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2015-04-28 21:11:14 +0000</bug_when>
    <thetext>OK, finally got a master build to where I could check. master looks OK now. I need to double check, but I think I need to make a backport request for fido to fix the issue there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50618</commentid>
    <comment_count>10</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2015-04-29 17:22:03 +0000</bug_when>
    <thetext>Did you need my patch or just plain master is enough?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50622</commentid>
    <comment_count>11</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-29 20:18:26 +0000</bug_when>
    <thetext>Alexandre, there was a suggestion from Adrian to use API calls instead of shelling out &quot;rm -f&quot;. Would you be willing to follow it?

http://lists.openembedded.org/pipermail/openembedded-core/2015-April/104230.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50623</commentid>
    <comment_count>12</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2015-04-29 20:27:32 +0000</bug_when>
    <thetext>It looks like plain master is enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51092</commentid>
    <comment_count>13</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2015-05-18 19:25:05 +0000</bug_when>
    <thetext>Ed,

Does this still needinfo?  It looks like Phlip answered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51108</commentid>
    <comment_count>14</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-05-18 22:39:28 +0000</bug_when>
    <thetext>Fixed in master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54144</commentid>
    <comment_count>15</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-09-16 09:40:32 +0000</bug_when>
    <thetext>Failed to verify because of bug 8309</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>