summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-07-28 12:29:26 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-30 08:46:19 +0100
commit092f4fafaa051a254588f8c9eee1db66e6aaacab (patch)
tree44732c3557df47b5cde056ca1632dd90025779cc /scripts/lib
parentd4e60fe6a41b2a04bc1af81e54da6e35f7ed4386 (diff)
downloadpoky-092f4fafaa051a254588f8c9eee1db66e6aaacab.tar.gz
wic: rootfs: make copied rootfs unique
Used unique suffix (line number from .wks file) for the copied rootfs directory to avoid possible conflicts. (From OE-Core rev: 01efc234a8caab67ed3138ab2de9bbd82ce97b44) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/wic/plugins/source/rootfs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py
index e438158f34..aec720fb22 100644
--- a/scripts/lib/wic/plugins/source/rootfs.py
+++ b/scripts/lib/wic/plugins/source/rootfs.py
@@ -88,7 +88,7 @@ class RootfsPlugin(SourcePlugin):
88 if part.exclude_path is not None: 88 if part.exclude_path is not None:
89 # We need a new rootfs directory we can delete files from. Copy to 89 # We need a new rootfs directory we can delete files from. Copy to
90 # workdir. 90 # workdir.
91 new_rootfs = os.path.realpath(os.path.join(cr_workdir, "rootfs")) 91 new_rootfs = os.path.realpath(os.path.join(cr_workdir, "rootfs%d" % part.lineno))
92 92
93 if os.path.lexists(new_rootfs): 93 if os.path.lexists(new_rootfs):
94 shutil.rmtree(os.path.join(new_rootfs)) 94 shutil.rmtree(os.path.join(new_rootfs))