From 68e6adf2df70c3f83d67dc869b3ce989a6902b80 Mon Sep 17 00:00:00 2001 From: Tom Zanussi Date: Thu, 31 Jul 2014 13:55:24 -0500 Subject: 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 Signed-off-by: Richard Purdie --- scripts/lib/mic/utils/partitionedfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/lib/mic/utils/partitionedfs.py') diff --git a/scripts/lib/mic/utils/partitionedfs.py b/scripts/lib/mic/utils/partitionedfs.py index 593cf1f317..83ce869860 100644 --- a/scripts/lib/mic/utils/partitionedfs.py +++ b/scripts/lib/mic/utils/partitionedfs.py @@ -744,7 +744,7 @@ class PartitionedMount(Mount): dd_cmd = "dd if=%s of=%s bs=%d seek=%d count=%d conv=notrunc" % \ (source_file, self.image_file, self.sector_size, start, size) - rc, out = exec_cmd(dd_cmd) + exec_cmd(dd_cmd) def install(self, image_file): -- cgit v1.2.3-54-g00ecf