diff --git a/pkg/device/device-util.go b/pkg/device/device-util.go index 46095fe..451ae35 100644 --- a/pkg/device/device-util.go +++ b/pkg/device/device-util.go @@ -498,7 +498,7 @@ func getDiskList() ([]diskDetail, error) { // a sample blockDeviceEntry entry look like // sdb 8:16 0 17179869184 0 disk tmp := strings.Fields(blockDeviceEntry) - if len(tmp) == 0 { + if len(tmp) <= lsblkDevTypeIndex { continue }