mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
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: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
974441aeda
commit
b71375304f
@@ -508,7 +508,7 @@ def check_patch(patchfile):
|
||||
f.close()
|
||||
if of:
|
||||
of.close()
|
||||
os.rename(patchfile + '.tmp', patchfile)
|
||||
bb.utils.rename(patchfile + '.tmp', patchfile)
|
||||
|
||||
def drop_to_shell(workdir=None):
|
||||
if not sys.stdin.isatty():
|
||||
|
||||
Reference in New Issue
Block a user