mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
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:
commit
cc0406ca26
@ -98,7 +98,7 @@ func isSysFSWritable() (bool, error) {
|
|||||||
|
|
||||||
for _, mountPoint := range mountPoints {
|
for _, mountPoint := range mountPoints {
|
||||||
const sysfsDevice = "sysfs"
|
const sysfsDevice = "sysfs"
|
||||||
if mountPoint.Device != sysfsDevice {
|
if mountPoint.Type != sysfsDevice {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// Check whether sysfs is 'rw'
|
// Check whether sysfs is 'rw'
|
||||||
|
Loading…
Reference in New Issue
Block a user