diff --git a/pkg/util/sys/device.go b/pkg/util/sys/device.go index 873633cd6807..f664de46b468 100644 --- a/pkg/util/sys/device.go +++ b/pkg/util/sys/device.go @@ -209,18 +209,6 @@ func GetDevicePropertiesFromPath(devicePath string, executor exec.Executor) (map output, err := executor.ExecuteCommandWithOutput("lsblk", devicePath, "--bytes", "--nodeps", "--pairs", "--paths", "--output", "SIZE,ROTA,RO,TYPE,PKNAME,NAME,KNAME") if err != nil { - // The "not a block device" error also returns code 32 so the ExitStatus() check hides this error - if strings.Contains(output, "not a block device") { - return nil, err - } - - // try to get more information about the command error - if code, ok := exec.ExitStatus(err); ok && code == 32 { - // certain device types (such as loop) return exit status 32 when probed further, - // ignore and continue without logging - return map[string]string{}, nil - } - logger.Errorf("failed to execute lsblk. output: %s", output) return nil, err }