From 71c2790f084280b0dddb6acd50525e25cec9a815 Mon Sep 17 00:00:00 2001 From: weishu Date: Tue, 30 Jan 2024 12:20:36 +0800 Subject: [PATCH] ksud: remove unnecessary image check --- userspace/ksud/src/module.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/ksud/src/module.rs b/userspace/ksud/src/module.rs index 3a500af5..626ac492 100644 --- a/userspace/ksud/src/module.rs +++ b/userspace/ksud/src/module.rs @@ -361,6 +361,7 @@ fn _install_module(zip: &str) -> Result<()> { "Failed to format ext4 image: {}", String::from_utf8(result.stderr).unwrap() ); + check_image(tmp_module_img)?; } else if modules_update_img_exist { // modules_update.img exists, we should use it as tmp img info!("Using existing modules_update.img as tmp image"); @@ -399,7 +400,6 @@ fn _install_module(zip: &str) -> Result<()> { .status()?; } } - check_image(tmp_module_img)?; // ensure modules_update exists ensure_dir_exists(module_update_tmp_dir)?;