ksud: remove unnecessary image check

This commit is contained in:
weishu
2024-01-30 12:20:36 +08:00
parent 8733b390ca
commit 71c2790f08

View File

@@ -361,6 +361,7 @@ fn _install_module(zip: &str) -> Result<()> {
"Failed to format ext4 image: {}", "Failed to format ext4 image: {}",
String::from_utf8(result.stderr).unwrap() String::from_utf8(result.stderr).unwrap()
); );
check_image(tmp_module_img)?;
} else if modules_update_img_exist { } else if modules_update_img_exist {
// modules_update.img exists, we should use it as tmp img // modules_update.img exists, we should use it as tmp img
info!("Using existing modules_update.img as tmp image"); info!("Using existing modules_update.img as tmp image");
@@ -399,7 +400,6 @@ fn _install_module(zip: &str) -> Result<()> {
.status()?; .status()?;
} }
} }
check_image(tmp_module_img)?;
// ensure modules_update exists // ensure modules_update exists
ensure_dir_exists(module_update_tmp_dir)?; ensure_dir_exists(module_update_tmp_dir)?;