diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-07-10 13:25:14 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-16 10:20:48 +0100 |
commit | f3986878eda239e1aa3fd78a4fbc48eab0da56cf (patch) | |
tree | 55a854120a28c80f914555469c7fdbb6c4a586f9 | |
parent | 1dcdd877c7946be4c0b1203deb14e2f842f9d0c2 (diff) | |
download | poky-f3986878eda239e1aa3fd78a4fbc48eab0da56cf.tar.gz |
wic: Error on parted non-zero error code
The current code uses msger.debug() to note errors, effectively
squelching them if --debug isn't used. Apparently this is because it
can return non-zero for some loop device failures. We don't care
about loop devices, and not paying attention to the error code
actually results in invalid images, so error out on parted failures as
we should be.
(From OE-Core rev: b1c68e5446080f0743f7f8a530f3b00f90c8717d)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | scripts/lib/mic/utils/partitionedfs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/mic/utils/partitionedfs.py b/scripts/lib/mic/utils/partitionedfs.py index 6607466a83..593cf1f317 100644 --- a/scripts/lib/mic/utils/partitionedfs.py +++ b/scripts/lib/mic/utils/partitionedfs.py | |||
@@ -272,7 +272,7 @@ class PartitionedMount(Mount): | |||
272 | # parted always fails to reload part table with loop devices. This | 272 | # parted always fails to reload part table with loop devices. This |
273 | # prevents us from distinguishing real errors based on return | 273 | # prevents us from distinguishing real errors based on return |
274 | # code. | 274 | # code. |
275 | msger.debug("WARNING: parted returned '%s' instead of 0" % rc) | 275 | msger.error("WARNING: parted returned '%s' instead of 0 (use --debug for details)" % rc) |
276 | 276 | ||
277 | def __create_partition(self, device, parttype, fstype, start, size): | 277 | def __create_partition(self, device, parttype, fstype, start, size): |
278 | """ Create a partition on an image described by the 'device' object. """ | 278 | """ Create a partition on an image described by the 'device' object. """ |