ksud: specific ext4 format for mount

This commit is contained in:
tiann
2023-01-05 11:14:02 +08:00
parent 279b591200
commit 313862dd07

View File

@@ -4,7 +4,7 @@ use anyhow::{Result, ensure};
use subprocess::Exec;
pub fn mount_image(src: &str, target: &str) -> Result<()> {
let result = Exec::shell(format!("mount {} {}", src, target)).join()?;
let result = Exec::shell(format!("mount -t ext4 {} {}", src, target)).join()?;
ensure!(result.success(), "mount: {} -> {} failed.", src, target);
Ok(())
}