summaryrefslogtreecommitdiff
path: root/scripts/lib/wic
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-02-04 23:49:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-07 18:52:45 +0000
commit2d3c9f89852bd009fc7accee495ede2fbcadc3bb (patch)
tree94bb433c167be4ed0e61fccb9ed3f802593f78bc /scripts/lib/wic
parent26280cf0199abb3266d620c8dee1194504a5a829 (diff)
downloadopenembedded-core-2d3c9f89852bd009fc7accee495ede2fbcadc3bb.tar.gz
openembedded-core-2d3c9f89852bd009fc7accee495ede2fbcadc3bb.tar.bz2
openembedded-core-2d3c9f89852bd009fc7accee495ede2fbcadc3bb.zip
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@free-electrons.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-partition.py2
1 files changed, 1 insertions, 1 deletions
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