gnu: home: Replace rename in update-symlinks scripts. * gnu/home/services/symlink-manager.scm (update-symlinks): Use copy-file and delete-file instead of rename-file to avoid an error when the target and backup are not in the same filesystem. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 2 insertions(+), 1 deletions(-) M gnu/home/services/symlink-manager.scm
M gnu/home/services/symlink-manager.scm => gnu/home/services/symlink-manager.scm +2 -1
@@ 106,7 106,8 @@ subdirectory from XDG_CONFIG_HOME to generate a target path." (mkdir-p backup-directory) (format #t (G_ "Backing up ~a...") (target-file file)) (mkdir-p (dirname backup)) (rename-file (target-file file) backup) (copy-file (target-file file) backup) (delete-file (target-file file)) (display (G_ " done\n"))) (define (cleanup-symlinks home-generation)