Skip to content
Commit 656a65b2 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]

Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
parent ed2b18ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment