summaryrefslogtreecommitdiff
path: root/scripts/lib/wic/imager
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-04-06 20:43:35 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-14 12:38:10 +0100
commit76adf38c0d8e0faf04a5ecb3fcfbe831c85bb81f (patch)
treee49cde7f0a58ed4b58420d4ab16724f24c05da7a /scripts/lib/wic/imager
parent8d207e55031c0b93387e728f4312b8cb34ad5b12 (diff)
downloadopenembedded-core-76adf38c0d8e0faf04a5ecb3fcfbe831c85bb81f.tar.gz
openembedded-core-76adf38c0d8e0faf04a5ecb3fcfbe831c85bb81f.tar.bz2
openembedded-core-76adf38c0d8e0faf04a5ecb3fcfbe831c85bb81f.zip
wic: use native parted
Used exec_native_cmd instead of find_binary_path to run parted. Got rid of find_binary_path as it's not used anywhere else. There are several tools wic is trying to find not only in sysroot, but also in host root. Parted is a special as on some distros it's installed in /usr/sbin, which is not in the user's PATH. This makes wic to fail with error "External command 'parted' not found, exiting." [YOCTO #7122] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/imager')
-rw-r--r--scripts/lib/wic/imager/direct.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py
index c1e5f09eee..0e687bd70e 100644
--- a/scripts/lib/wic/imager/direct.py
+++ b/scripts/lib/wic/imager/direct.py
@@ -241,7 +241,7 @@ class DirectImageCreator(BaseImageCreator):
"""
parts = self._get_parts()
- self.__image = Image()
+ self.__image = Image(self.native_sysroot)
for p in parts:
# as a convenience, set source to the boot partition source