<?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>7042</bug_id>
          
          <creation_ts>2014-12-08 17:26:20 +0000</creation_ts>
          <short_desc>wic: can&apos;t find rootfs-dir if image was build with rm_work enabled</short_desc>
          <delta_ts>2015-09-09 10:42:27 +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>VERIFIED</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.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Moore">moorecr3</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
          
          <qa_contact name="Daniel Istrate">daniel.alexandrux.istrate</qa_contact>
          <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>47427</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Moore">moorecr3</who>
    <bug_when>2014-12-08 17:26:20 +0000</bug_when>
    <thetext>bitbake core-image-full-cmdline
wic create mkefidisk -e core-image-full-cmdline

Fails with &quot;The artifact that couldn&apos;t be found was rootfs-dir&quot;.

Removing INHERIT += &quot;rm_work&quot; from local.conf and rebuilding the image allows wic to complete.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50086</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-04 15:16:27 +0000</bug_when>
    <thetext>wic uses artifacts produced by bitbake build by design. In particular, rootfs is used from workdir, e.g. tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs. It&apos;s also explained in documentation: tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs this way:

You need to have the build artifacts already available, which typically means that you must have already created an image using the Openembedded build system (e.g. core-image-minimal). While it might seem redundant to generate an image in order to create an image using wic, the current version of wic requires the artifacts in the form generated by the build system.

Removing workdir obvously causes wic to fail because it can&apos;t find roofts.
The only thing we can do about it for now is to make an error message more explanatory, i.e. to add info about usage of rm_work task being possible reason of failure. However, I personally don&apos;t think it makes sense as it&apos;s already explained in documentation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50087</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-04 15:18:31 +0000</bug_when>
    <thetext>Sorry, I put wrong link to documentation in previous comment. Here is the right one: http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#wic-requirements</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50143</commentid>
    <comment_count>3</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-08 10:42:36 +0000</bug_when>
    <thetext>Resolving as NOTABUG according to my previous explanations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53868</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-09-09 10:42:27 +0000</bug_when>
    <thetext>As Ed previously specified this is by design.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>