Bug 7122 - wic: External command 'parted' not found, exiting.
Summary: wic: External command 'parted' not found, exiting.
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: deployment (show other bugs)
Version: 1.7.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.9
Assignee: Ed Bartosh
QA Contact: Costin
URL:
Whiteboard: TC needed, related to 6863
Depends on:
Blocks: 6863
  Show dependency tree
 
Reported: 2015-01-07 22:46 UTC by Thomas Moore
Modified: 2015-04-29 19:35 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Moore 2015-01-07 22:46:33 UTC
When running wic on openSUSE 13.1, the following output is generated:

$ wic create directdisk -e core-image-base
>Checking basic build environment...
>Done.
>
>Creating image(s)...
>
>External command 'parted' not found, exiting.
>  (Please install 'parted' 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.
Comment 1 Ed Bartosh 2015-04-04 18:58:46 UTC
Here is my attempt to fix this issue: http://lists.openembedded.org/pipermail/openembedded-core/2015-April/103342.html

Let's see if it gets merged.
Comment 2 Ed Bartosh 2015-04-06 18:21:47 UTC
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.
Comment 3 Ed Bartosh 2015-04-14 14:29:07 UTC
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.
Comment 4 Costin 2015-04-29 19:32:14 UTC
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