diff --git a/userspace/ksud/src/event.rs b/userspace/ksud/src/event.rs index 05de110a7a35..244827a6b0c8 100644 --- a/userspace/ksud/src/event.rs +++ b/userspace/ksud/src/event.rs @@ -246,7 +246,7 @@ pub fn on_boot_completed() -> Result<()> { // this is a update and we successfully booted if std::fs::rename(module_update_img, module_img).is_err() { warn!("Failed to rename images, copy it now.",); - std::fs::copy(module_update_img, module_img) + utils::copy_sparse_file(module_update_img, module_img) .with_context(|| "Failed to copy images")?; std::fs::remove_file(module_update_img).with_context(|| "Failed to remove image!")?; }