diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-01-19 18:51:05 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-20 17:07:13 +0000 |
| commit | 3fc6aaa1862a735322264049dcb50c69acf30d36 (patch) | |
| tree | f2237b68c2c1fcb7c7f5b67a1e8530151b80d7c8 /scripts/lib/wic/plugins/source/bootimg-partition.py | |
| parent | 8d34eea303f1a8bbfeb01252330b0f6dfd92bbf7 (diff) | |
| download | poky-3fc6aaa1862a735322264049dcb50c69acf30d36.tar.gz | |
wic: do not remove build dir in source plugins
Interesting bug was found during implementation of 'include'
parser command.
Build directory was removed in do_configure_partition method of
bootimg- source plugins. This can cause removal of previously
prepared partition images if /boot partition is mentioned after
other partitions in .ks file.
Moved work directory removal to direct.py before processing
partitions.
(From OE-Core rev: ba98262573cf1600e0d477317f51d488b5f8c4bd)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins/source/bootimg-partition.py')
| -rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-partition.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg-partition.py index bc2ca0f6fa..b76c1211ae 100644 --- a/scripts/lib/wic/plugins/source/bootimg-partition.py +++ b/scripts/lib/wic/plugins/source/bootimg-partition.py | |||
| @@ -71,9 +71,6 @@ class BootimgPartitionPlugin(SourcePlugin): | |||
| 71 | - copies all files listed in IMAGE_BOOT_FILES variable | 71 | - copies all files listed in IMAGE_BOOT_FILES variable |
| 72 | """ | 72 | """ |
| 73 | hdddir = "%s/boot" % cr_workdir | 73 | hdddir = "%s/boot" % cr_workdir |
| 74 | rm_cmd = "rm -rf %s/boot" % cr_workdir | ||
| 75 | exec_cmd(rm_cmd) | ||
| 76 | |||
| 77 | install_cmd = "install -d %s" % hdddir | 74 | install_cmd = "install -d %s" % hdddir |
| 78 | exec_cmd(install_cmd) | 75 | exec_cmd(install_cmd) |
| 79 | 76 | ||
