mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
wic: isoimage: do not remove temp directory
Removed isodir subrdirectory instead of removing temporary working directory as working directory can contain copy of rootfs partition and shouldn't be removed by any plugin. (From OE-Core rev: fc12ce9d1b92cc0104cf456af1e3d5f146b9219d) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
b6dd87f2a8
commit
57a334c10a
|
@ -204,8 +204,8 @@ class IsoImagePlugin(SourcePlugin):
|
|||
"""
|
||||
isodir = "%s/ISO/" % cr_workdir
|
||||
|
||||
if os.path.exists(cr_workdir):
|
||||
shutil.rmtree(cr_workdir)
|
||||
if os.path.exists(isodir):
|
||||
shutil.rmtree(isodir)
|
||||
|
||||
install_cmd = "install -d %s " % isodir
|
||||
exec_cmd(install_cmd)
|
||||
|
|
Loading…
Reference in New Issue
Block a user