mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
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
This commit is contained in:
parent
21c3b3028f
commit
439a03136f
@ -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