mirror of
https://github.com/tiann/KernelSU.git
synced 2025-02-20 11:43:32 +08:00
ksud: e2fsck before resize2fs
This commit is contained in:
parent
473f02396f
commit
626642af76
@ -87,6 +87,9 @@ fn mark_module_state(module: &str, flag_file: &str, create_or_delete: bool) -> R
|
||||
}
|
||||
|
||||
fn get_minimal_image_size(img: &str) -> Result<u64> {
|
||||
|
||||
check_image(img)?;
|
||||
|
||||
let output = Command::new("resize2fs")
|
||||
.args(["-P", img])
|
||||
.stdout(Stdio::piped())
|
||||
|
Loading…
x
Reference in New Issue
Block a user