From 313862dd074a1c2da7a3e4437a11944be179654f Mon Sep 17 00:00:00 2001 From: tiann Date: Thu, 5 Jan 2023 11:14:02 +0800 Subject: [PATCH] ksud: specific ext4 format for mount --- userspace/ksud/src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/ksud/src/utils.rs b/userspace/ksud/src/utils.rs index 31dd12b3..5577cba4 100644 --- a/userspace/ksud/src/utils.rs +++ b/userspace/ksud/src/utils.rs @@ -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(()) }