ksud: opti module mount

This commit is contained in:
tiann
2023-02-02 21:56:08 +08:00
parent 12f353a1ae
commit 7b32c0e37b
3 changed files with 15 additions and 9 deletions

View File

@@ -124,7 +124,8 @@ pub fn on_post_data_fs() -> Result<()> {
}
info!("mount {target_update_img} to {module_dir}");
mount::mount_ext4(target_update_img, module_dir, false)?;
mount::AutoMountExt4::try_new(target_update_img, module_dir, false)
.with_context(|| "mount module image failed".to_string())?;
// load sepolicy.rule
if crate::module::load_sepolicy_rule().is_err() {