From: Alexandre Belloni Date: Wed, 4 Feb 2015 22:49:15 +0000 (+0100) Subject: wic: bootimg-partition: Stop removing whole workdir X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=00746b1d68db9b34ba573210e154f7b6787a537c;p=openembedded-core.git wic: bootimg-partition: Stop removing whole workdir Stop removing the whole working directory as this is also removing eventual previously created partition images, leading to image creation failures. Change-Id: I2ec3a06fa69863ed39c5687a9dcb0b4c21848f9f Signed-off-by: Alexandre Belloni Signed-off-by: Ross Burton Signed-off-by: Richard Purdie Signed-off-by: Otavio Salvador --- diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg-partition.py index 6ba39a01f7..c5eb7b8b80 100644 --- a/scripts/lib/wic/plugins/source/bootimg-partition.py +++ b/scripts/lib/wic/plugins/source/bootimg-partition.py @@ -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