wic appending ".1" to a file name on multiple images build


Alan
 

Hi,
I'm creating two images with the single bitbake command and
on inherits the other (production, and a dev which "require production").

Building them at the same time causes an issue:

Traceback (most recent call lastd):
File "/home/alan/workspace/senic-os-dev/oe/scripts/lib/wic/filemap.py",
line 120, in _open_image_file
self._f_image = open(self._image_path, 'rb')
FileNotFoundError: [Errno 2] No such file or directory:
'/home/alan/workspace/senic-os-dev/build/tmp-glibc/deploy/images/senic-hub/u-boot-sunxi-with-spl.bin.1'


The cause of the issue seems to be that `wic create`,
even though it gets the correct file path through the
wks file ("u-boot-sunxi-with-spl.bin")
somewhere in the execution of wic create that
fiile gets renamed (to "u-boot-sunxi-with-spl.bin.1")
and results in an above issue.

This only happens when the images are built in parallel,
running each separately gives no errors.

Am open for suggestions on how to approach this. :)


Be Well,
Alan

Join yocto@lists.yoctoproject.org to automatically receive all group messages.