<?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>7122</bug_id>
          
          <creation_ts>2015-01-07 22:46:33 +0000</creation_ts>
          <short_desc>wic: External command &apos;parted&apos; not found, exiting.</short_desc>
          <delta_ts>2015-04-29 19:35:05 +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.7.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>TC needed, related to 6863</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          <blocked>6863</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Thomas Moore">tcm0116</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>costin.c.constantin</cc>
          
          <qa_contact name="Costin">costin.c.constantin</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>47783</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Moore">tcm0116</who>
    <bug_when>2015-01-07 22:46:33 +0000</bug_when>
    <thetext>When running wic on openSUSE 13.1, the following output is generated:

$ wic create directdisk -e core-image-base
&gt;Checking basic build environment...
&gt;Done.
&gt;
&gt;Creating image(s)...
&gt;
&gt;External command &apos;parted&apos; not found, exiting.
&gt;  (Please install &apos;parted&apos; on your host system)

parted is installed on my system. However, in openSUSE, it is installed in /usr/sbin, which is not, by default, included in PATH. Running wic after appending /usr/sbin to the PATH provides a temporary workaround:

$ PATH=$PATH:/usr/sbin wic create directdisk -e core-image-base

Perhaps a special case should be included in the find_binary_path function in fs_related.py for openSUSE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50088</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-04 18:58:46 +0000</bug_when>
    <thetext>Here is my attempt to fix this issue: http://lists.openembedded.org/pipermail/openembedded-core/2015-April/103342.html

Let&apos;s see if it gets merged.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50097</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-06 18:21:47 +0000</bug_when>
    <thetext>First attempt was rejected: http://lists.openembedded.org/pipermail/openembedded-core/2015-April/103344.html

Second attempt: http://lists.openembedded.org/pipermail/openembedded-core/2015-April/103387.html
Hopefully this one has more chances to succeed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50297</commentid>
    <comment_count>3</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-14 14:29:07 +0000</bug_when>
    <thetext>Fixed by this commit: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ea07f0325cdbeb40884aa55707b8787b63554e3e

Now wic uses native parted, so to make it working your need to bake parted-native.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50619</commentid>
    <comment_count>4</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-04-29 19:32:14 +0000</bug_when>
    <thetext>Hello,

i came to this bug as a result of having a look on 6863. 
Tested on latest poky master hash: ae736dbdd140975ba43f06e635b461dbf36a117e

steps performed:

1) cloned a fresh copy of poky
2) changed MACHINE to genericx86 in local.conf
3) bitbake core-image-sato-sdk 
4) bitbake parted-native
4) wic create ../scripts/lib/image/canned-wks/directdisk.wks -e core-image-sato-sdk

Everything is fine. Marking as verified.

Costin</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>