mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01: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:
committed by
Richard Purdie
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)
|
||||
|
||||
Reference in New Issue
Block a user