diff --git a/appmgr/src/disk/util.rs b/appmgr/src/disk/util.rs index 0770bad3e..930f94588 100644 --- a/appmgr/src/disk/util.rs +++ b/appmgr/src/disk/util.rs @@ -86,7 +86,7 @@ pub async fn get_model>(path: P) -> Result, Error> pub async fn get_capacity>(path: P) -> Result { Ok(String::from_utf8( - Command::new("BlockDevice") + Command::new("blockdev") .arg("--getsize64") .arg(path.as_ref()) .invoke(crate::ErrorKind::BlockDevice) @@ -97,7 +97,7 @@ pub async fn get_capacity>(path: P) -> Result { pub async fn get_label>(path: P) -> Result, Error> { let label = String::from_utf8( - Command::new("lsblk ") + Command::new("lsblk") .arg("-no") .arg("label") .arg(path.as_ref()) @@ -162,7 +162,7 @@ pub async fn list() -> Result, Error> { disks.insert(disk.clone(), IndexSet::new()); } if let Some(part_path) = part_path { - let part_path = Path::new(DISK_PATH).join(disk_path); + let part_path = Path::new(DISK_PATH).join(part_path); let part = tokio::fs::canonicalize(&part_path).await.with_ctx(|_| { ( crate::ErrorKind::Filesystem,