diff --git a/KubeOS-Rust/manager/src/utils/partition.rs b/KubeOS-Rust/manager/src/utils/partition.rs index 799b4b35d63bdcfbe06c0c620dca5e68d7f5b464..9fafb6979f55fe817616ab6c6f4ed3db0fbbff5b 100644 --- a/KubeOS-Rust/manager/src/utils/partition.rs +++ b/KubeOS-Rust/manager/src/utils/partition.rs @@ -24,7 +24,7 @@ pub struct PartitionInfo { /// get_partition_info returns the current partition info and the next partition info. pub fn get_partition_info(executor: &T) -> Result<(PartitionInfo, PartitionInfo), anyhow::Error> { - let lsblk = executor.run_command_with_output("lsblk", &["-lno", "NAME,MOUNTPOINTS,FSTYPE"])?; + let lsblk = executor.run_command_with_output("lsblk", &["-lno", "NAME,MOUNTPOINT,FSTYPE"])?; // After split whitespace, the root directory line should have 3 elements, which are "sda2 / ext4". let mut cur_partition = PartitionInfo::default(); let mut next_partition = PartitionInfo::default(); diff --git a/cmd/agent/server/utils.go b/cmd/agent/server/utils.go index fdddc7d5d5af1303c1c8a46a42d8398f4e289de0..ba4cb0c23f85c29c4c6955cf663587b4e19710f6 100644 --- a/cmd/agent/server/utils.go +++ b/cmd/agent/server/utils.go @@ -110,7 +110,7 @@ func getNextPart(partA string, partB string) (string, string, error) { } func getRootfsDisks() (string, string, error) { - out, err := runCommandWithOut("lsblk", "-lno", "NAME,MOUNTPOINTS") + out, err := runCommandWithOut("lsblk", "-lno", "NAME,MOUNTPOINT") if err != nil { logrus.Errorln("get rootfs disks error " + err.Error()) return "", "", err