Skip to content
Snippets Groups Projects
Commit b7137530 authored by Devendra Tewari's avatar Devendra Tewari Committed by Richard Purdie
Browse files

classes/lib/scripts: Use bb.utils.rename() instead of os.rename()


Incremental build in Docker fails with:

OSError: [Errno 18] Invalid cross-device link

when source and destination are on different overlay filesystems.

Rather than adding fallback code to every call site, use a new wrapper
in bitbake which detects this case and falls back to shutil.move
which is slower but will handtle the overlay docker filesystems correctly.

[YOCTO #14301]

(From OE-Core rev: 656a65b2b84e7d529b89cf5de7eb838f902d84a2)

Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
parent 974441ae
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment