wic: Make exec_cmd() error out instead of warn
authorTom Zanussi <tom.zanussi@linux.intel.com>
Thu, 31 Jul 2014 18:55:24 +0000 (13:55 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Aug 2014 09:53:08 +0000 (10:53 +0100)
commit63b1408db42193fd92398edfa1819b3bdc2d3073
tree9a0a4beb4cd9e6b5a67e2739fbe4f57182826571
parent3846072d9a6c166303fafcd6beea48e6d0203841
wic: Make exec_cmd() error out instead of warn

The reason exec_cmd() warns but doesn't error out (broken parted)
doesn't really make sense, since the parted invocations don't even use
exec_cmd().  It really should just fail since by not doing so it's
actually enabling invalid images in some cases.

Also, since the return code is now always zero, there's no point in
having a return code, so remove it.  This represents a change in the
API, so we also need to update all callers.

(From OE-Core rev: a10bbd39eee29cc49d258bf08aaec279c3115c66)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/mic/kickstart/custom_commands/partition.py
scripts/lib/mic/plugins/source/bootimg-efi.py
scripts/lib/mic/plugins/source/bootimg-pcbios.py
scripts/lib/mic/utils/fs_related.py
scripts/lib/mic/utils/oe/misc.py
scripts/lib/mic/utils/partitionedfs.py