提交 1fdf1637 编写于 作者: T Thomas Stromberg

Fix sysfs path

上级 0ca05d92
......@@ -126,12 +126,12 @@ func checkNeedsImprovement() registry.State {
// checkOverlayMod checks if
func checkOverlayMod() registry.State {
if _, err := os.Stat("/sys/modules/overlay"); err == nil {
if _, err := os.Stat("/sys/module/overlay"); err == nil {
glog.Info("overlay module found")
return registry.State{Installed: true, Healthy: true}
}
if _, err := os.Stat("/sys/modules/overlay2"); err == nil {
if _, err := os.Stat("/sys/module/overlay2"); err == nil {
glog.Info("overlay2 module found")
return registry.State{Installed: true, Healthy: true}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册