diff --git a/disk/disk_linux.go b/disk/disk_linux.go index 340f973..cb36751 100644 --- a/disk/disk_linux.go +++ b/disk/disk_linux.go @@ -10,6 +10,7 @@ import ( "io/ioutil" "os" "path/filepath" + "runtime" "strconv" "strings" @@ -244,7 +245,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro } fs, err := getFileSystems() - if err != nil { + if err != nil && runtime.GOOS != "android" { return nil, err }