<?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>5835</bug_id>
          
          <creation_ts>2014-02-17 23:41:35 +0000</creation_ts>
          <short_desc>wic doesn&apos;t abort when it can&apos;t find mcopy</short_desc>
          <delta_ts>2014-02-20 21:16:47 +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>1.6</version>
          <rep_platform>All</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.6 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>dvhart</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <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>40399</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-02-17 23:41:35 +0000</bug_when>
    <thetext>If the user doesn&apos;t have mtools installed the boot filesystem creation doesn&apos;t emit any warnings and continues to produce an empty filesystem.

Turning on --debug results in:

Debug: exec_cmd: output for export PATH=/data/yocto-autobuilder/slaves/devkit-world/build/build/tmp/sysroots/x86_64-linux/sbin:PATH=/data/yocto-autobuilder/slaves/devkit-world/build/build/tmp/sysroots/x86_64-linux/usr/sbin:PATH=/data/yocto-autobuilder/slaves/devkit-world/build/build/tmp/sysroots/x86_64-linux/usr/bin:$PATH;mcopy -i /var/tmp/wic/build/boot.img -s /var/tmp/wic/build/hdd/* ::/ (rc = 127): /bin/sh: 1: mcopy: not found
Debug: WARNING: export returned &apos;127&apos; instead of 0

Obviously, that debug should actually be a fatal error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40425</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-02-18 15:33:08 +0000</bug_when>
    <thetext>Yes, at minimum I need to audit the code for failures when a tool isn&apos;t installed or can&apos;t be found.

It would be convenient to use the native tools, but not sure how exactly to do that as wic is meant to be standalone tool outside of the build system and therefore doesn&apos;t enter into dependency processing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40468</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-02-19 20:56:01 +0000</bug_when>
    <thetext>Fix(es) submitted to OE-core.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40469</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-02-19 20:57:45 +0000</bug_when>
    <thetext>BTW, I forgot that we actually do use the native commands, it&apos;s just that it didn&apos;t actually work sometimes because of a couple bogus PATH elements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40546</commentid>
    <comment_count>4</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-02-20 21:16:47 +0000</bug_when>
    <thetext>Fixed in master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=bb0c26960d3b05070346cdfdfd05d6fd4ad0a7b1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>