mirror of
https://git.yoctoproject.org/poky
synced 2026-02-16 05:33:03 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
1dcdd877c7
commit
f3986878ed
@@ -272,7 +272,7 @@ class PartitionedMount(Mount):
|
||||
# parted always fails to reload part table with loop devices. This
|
||||
# prevents us from distinguishing real errors based on return
|
||||
# code.
|
||||
msger.debug("WARNING: parted returned '%s' instead of 0" % rc)
|
||||
msger.error("WARNING: parted returned '%s' instead of 0 (use --debug for details)" % rc)
|
||||
|
||||
def __create_partition(self, device, parttype, fstype, start, size):
|
||||
""" Create a partition on an image described by the 'device' object. """
|
||||
|
||||
Reference in New Issue
Block a user