ignore /proc/filesystems errors on android

This commit is contained in:
Aman Gupta 2019-07-22 13:09:37 -07:00
parent 507e2f7a53
commit ea0f864aef
1 changed files with 2 additions and 1 deletions

View File

@ -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
}