mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 06:32:13 +02:00
wic: rawcopy: make source filenames unique
Rawcopy plugin copies source files to build folder before using them to assemble result image. After assembling the image wic renames source files to <image>.p<partition number>. If the same source file is used in multiple partitions wic breaks trying to rename file that doesn't exist. Added <line number> suffix to the files when copying them to the build dir. This should make filename unique even if the same source file is used for multiple partitions. [YOCTO #9826] (From OE-Core rev: 43a809bfe99024083b4ab4eb9895b084c9c4fa80) 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
788d6fb30d
commit
2d5b282957
@@ -68,7 +68,7 @@ class RawCopyPlugin(SourcePlugin):
|
||||
return
|
||||
|
||||
src = os.path.join(bootimg_dir, source_params['file'])
|
||||
dst = os.path.join(cr_workdir, source_params['file'])
|
||||
dst = os.path.join(cr_workdir, "%s.%s" % (source_params['file'], part.lineno))
|
||||
|
||||
if 'skip' in source_params:
|
||||
sparse_copy(src, dst, skip=source_params['skip'])
|
||||
|
||||
Reference in New Issue
Block a user