<?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>12176</bug_id>
          
          <creation_ts>2017-10-03 22:23:55 +0000</creation_ts>
          <short_desc>wic ls myimage.wic:1 fails on ubuntu 16.04 using host mtools</short_desc>
          <delta_ts>2020-06-25 08:13:41 +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>Scripts and Tools</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.99</target_milestone>
          <dependson>12173</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</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>77325</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-10-03 22:23:55 +0000</bug_when>
    <thetext>If you try to ls a fat partition using wic on Ubuntu 16.04 with host mtools installed you get the following error:
****
ERROR: _exec_cmd: /usr/bin/mdir -i /tmp/wic-part7q2ppk8i ::/ returned &apos;1&apos; instead of 0
output: Total number of sectors (47824) not a multiple of sectors per track (32)!
Add mtools_skip_check=1 to your .mtoolsrc file to skip this test
****

if you create a ~/.mtoolsrc with 
mtools_skip_check=1 
in it; then the command proceeds fine. 

I will put a depends on Bug 12173 since this may go away when we use mtools-native correctly instead of host mtools. or it may not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77326</commentid>
    <comment_count>1</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-10-03 22:24:27 +0000</bug_when>
    <thetext>using our own mtools-native may allow us to make this bug obsolete...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77364</commentid>
    <comment_count>2</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-10-04 21:56:08 +0000</bug_when>
    <thetext>Turns out that wic ls has an optional argument to pass in the native sysroot containing mtools-native

wic ls -n (pwd)/tmp/sysroots-components/x86_64/mtools-native   /tmp/core-image-base-qemux86-64.wic:1  

^^^
The above works fine without the ~/.mtoolsrc file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87591</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-06-25 08:13:41 +0000</bug_when>
    <thetext>We only support using our own mtools.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>