[oe-commits] Alexandre Belloni : wic: bootimg-partition: Stop removing whole workdir

git at git.openembedded.org git at git.openembedded.org
Sun Feb 8 08:00:51 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: 2d3c9f89852bd009fc7accee495ede2fbcadc3bb
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2d3c9f89852bd009fc7accee495ede2fbcadc3bb

Author: Alexandre Belloni <alexandre.belloni at free-electrons.com>
Date:   Wed Feb  4 23:49:15 2015 +0100

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.

Signed-off-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 scripts/lib/wic/plugins/source/bootimg-partition.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg-partition.py
index 6ba39a0..c5eb7b8 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



More information about the Openembedded-commits mailing list