From 236c78b13a79f290ba8851a4aa0e65ed810e8813 Mon Sep 17 00:00:00 2001 From: rorka900 Date: Fri, 27 Mar 2026 18:02:00 +0000 Subject: feat(rootfs): add parallel package downloads and atomic replace command --- src/install.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/install.rs') diff --git a/src/install.rs b/src/install.rs index b2f0ad5..970fa22 100644 --- a/src/install.rs +++ b/src/install.rs @@ -506,6 +506,8 @@ pub fn install_files_with_root(source_dir: &Path, root: &Path, files: &[String]) symlink(&target, &dst) .map_err(|e| format!("Failed to create symlink {}: {}", dst.display(), e))?; } else { + let _ = fs::remove_file(&dst); + fs::copy(&src, &dst) .map_err(|e| format!("Failed to copy {}: {}", src.display(), e))?; } -- cgit v1.2.3