From 439a03136f7be3475071c6719adafaaafe87eed5 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Mon, 21 Nov 2016 14:56:10 +0100 Subject: [PATCH] Check sysfs Type instead of Device Some distribution, or installation use "none" device to mount sysfs (eg. Scaleway VPS). We should check the mount type instead of device. Fix #37183 --- cmd/kube-proxy/app/conntrack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kube-proxy/app/conntrack.go b/cmd/kube-proxy/app/conntrack.go index a7e982f0367..e1180c3f89f 100644 --- a/cmd/kube-proxy/app/conntrack.go +++ b/cmd/kube-proxy/app/conntrack.go @@ -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'