]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: bootimg-partition: Stop removing whole workdir
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 4 Feb 2015 22:49:15 +0000 (23:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 7 Feb 2015 18:52:45 +0000 (18:52 +0000)
Stop removing the whole working directory as this is also removing
eventual previously created partition images, leading to image creation
failures.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/plugins/source/bootimg-partition.py

index 6ba39a01f7005bfd2336e7daf60fceb239c3d5a3..c5eb7b8b801ba0c5c7be7954dcaab0c6942fbb5b 100644 (file)
@@ -66,7 +66,7 @@ class BootimgPartitionPlugin(SourcePlugin):
         - copies all files listed in IMAGE_BOOT_FILES variable
         """
         hdddir = "%s/boot" % cr_workdir
-        rm_cmd = "rm -rf %s" % cr_workdir
+        rm_cmd = "rm -rf %s/boot" % cr_workdir
         exec_cmd(rm_cmd)
 
         install_cmd = "install -d %s" % hdddir