diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-04-06 20:43:35 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-14 12:38:49 +0100 |
commit | ea07f0325cdbeb40884aa55707b8787b63554e3e (patch) | |
tree | 5d52b9ae29684e6d54c5340486a996216d1ecdc7 /scripts/lib/wic/imager/direct.py | |
parent | df9069d958fc9348f0afe63a7d0e0a0454ebe9b4 (diff) | |
download | poky-ea07f0325cdbeb40884aa55707b8787b63554e3e.tar.gz |
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]
(From OE-Core rev: 76adf38c0d8e0faf04a5ecb3fcfbe831c85bb81f)
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/direct.py')
-rw-r--r-- | scripts/lib/wic/imager/direct.py | 2 |
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): | |||
241 | """ | 241 | """ |
242 | parts = self._get_parts() | 242 | parts = self._get_parts() |
243 | 243 | ||
244 | self.__image = Image() | 244 | self.__image = Image(self.native_sysroot) |
245 | 245 | ||
246 | for p in parts: | 246 | for p in parts: |
247 | # as a convenience, set source to the boot partition source | 247 | # as a convenience, set source to the boot partition source |