summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/utils/partitionedfs.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-05 09:13:07 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-11 23:55:38 +0100
commit9e3e933321d58c04619a585326fb291dbf2748f5 (patch)
tree9446f4c8910388e362e6a5e7c5aa8122e642e879 /scripts/lib/wic/utils/partitionedfs.py
parent7467fd446d08704881325577b7035b6128db6151 (diff)
downloadopenembedded-core-9e3e933321d58c04619a585326fb291dbf2748f5.tar.gz
wic: move checks to exec_native_cmd
Checked for return code and output of native commands inside exec_native_cmd. Removed similar code from a lot of places where exec_native_cmd is called. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/wic/utils/partitionedfs.py')
-rw-r--r--scripts/lib/wic/utils/partitionedfs.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py
index eacf2679d2..8fd44a6a96 100644
--- a/scripts/lib/wic/utils/partitionedfs.py
+++ b/scripts/lib/wic/utils/partitionedfs.py
@@ -227,17 +227,7 @@ class Image:
args = ' '.join(args)
msger.debug(args)
- rc, out = exec_native_cmd(args, self.native_sysroot)
-
- if out:
- msger.debug('"parted" output: %s' % out)
-
- if rc != 0:
- # We don't throw exception when return code is not 0, because
- # parted always fails to reload part table with loop devices. This
- # prevents us from distinguishing real errors based on return
- # code.
- msger.error("WARNING: parted returned '%s' instead of 0 (use --debug for details)" % rc)
+ exec_native_cmd(args, self.native_sysroot)
def __create_partition(self, device, parttype, fstype, start, size):
""" Create a partition on an image described by the 'device' object. """