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-pcbios.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-pcbios.py')
| -rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-pcbios.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py index a1bfa2671e..5b719bf3bb 100644 --- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py | |||
| @@ -78,8 +78,6 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
| 78 | Called before do_prepare_partition(), creates syslinux config | 78 | Called before do_prepare_partition(), creates syslinux config |
| 79 | """ | 79 | """ |
| 80 | hdddir = "%s/hdd/boot" % cr_workdir | 80 | hdddir = "%s/hdd/boot" % cr_workdir |
| 81 | rm_cmd = "rm -rf " + cr_workdir | ||
| 82 | exec_cmd(rm_cmd) | ||
| 83 | 81 | ||
| 84 | install_cmd = "install -d %s" % hdddir | 82 | install_cmd = "install -d %s" % hdddir |
| 85 | exec_cmd(install_cmd) | 83 | exec_cmd(install_cmd) |
