Merge pull request #37220 from metal3d/fix-sysfs-on-none-device-37183

Automatic merge from submit-queue

Check sysfs Type instead of Device

Some distribution uses "none" device to mount "sysfs" type, so kube-proxy needs to list mount points and check "types" instead of "device".

fixes #37183 

```release-note
Change sysfs mountpoint tests from Device to Type to be able to find sysfs mountpoint on "none" device
```
This commit is contained in:
Kubernetes Submit Queue 2016-11-22 00:25:49 -08:00 committed by GitHub
commit cc0406ca26

View File

@ -98,7 +98,7 @@ func isSysFSWritable() (bool, error) {
for _, mountPoint := range mountPoints {
const sysfsDevice = "sysfs"
if mountPoint.Device != sysfsDevice {
if mountPoint.Type != sysfsDevice {
continue
}
// Check whether sysfs is 'rw'