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-efi.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-efi.py')
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-efi.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py index 125c943d12..a4734c9b36 100644 --- a/scripts/lib/wic/plugins/source/bootimg-efi.py +++ b/scripts/lib/wic/plugins/source/bootimg-efi.py | |||
@@ -142,8 +142,6 @@ class BootimgEFIPlugin(SourcePlugin): | |||
142 | Called before do_prepare_partition(), creates loader-specific config | 142 | Called before do_prepare_partition(), creates loader-specific config |
143 | """ | 143 | """ |
144 | hdddir = "%s/hdd/boot" % cr_workdir | 144 | hdddir = "%s/hdd/boot" % cr_workdir |
145 | rm_cmd = "rm -rf %s" % cr_workdir | ||
146 | exec_cmd(rm_cmd) | ||
147 | 145 | ||
148 | install_cmd = "install -d %s/EFI/BOOT" % hdddir | 146 | install_cmd = "install -d %s/EFI/BOOT" % hdddir |
149 | exec_cmd(install_cmd) | 147 | exec_cmd(install_cmd) |