fix(updater): don't fail AppImage installs when the temp dir is another mount of the same file system (#3688)

* fix(updater): skip a backup location the AppImage cannot be renamed into

Two mounts of one file system share st_dev, so install_appimage could
pick a bind-mounted or private temp dir and then fail every install with
EXDEV. Move on to the next location instead; the last one is the
AppImage's own directory.

* Apply suggestion from @lucasfernog

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
This commit is contained in:
Den IlinandLucas Fernandes Nogueira authored and GitHub committed 2026-10-10 14:46:00 -03:00
1 parent fce235c3fb
commit b6f39cc51c
2 files changed
+11 -1

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
---
updater: patch
updater-js: patch
---
On Linux, installing an AppImage update no longer fails with `Invalid cross-device link (os error 18)` when the temp or cache directory is a separate mount of the AppImage's file system, such as a bind-mounted or private `/tmp`. The backup now moves on to the next location, ending with the AppImage's own directory.