ksud: support sepolicy check

This commit is contained in:
tiann
2023-02-03 13:16:17 +08:00
parent 430c2e709f
commit 70b8b43b48
3 changed files with 23 additions and 5 deletions

View File

@@ -529,7 +529,7 @@ where
let result = func(id, update_dir);
if let Err(e) = std::fs::rename(modules_update_tmp_img, defs::MODULE_UPDATE_IMG) {
warn!("Rename image failed, try copy it.");
warn!("Rename image failed: {e}, try copy it.");
std::fs::copy(modules_update_tmp_img, defs::MODULE_UPDATE_IMG)
.with_context(|| "Failed to copy image.".to_string())?;
let _ = std::fs::remove_file(modules_update_tmp_img);