om check适配修改·

This commit is contained in:
gyt0221
2020-10-27 15:54:44 +08:00
parent 307db7f772
commit d80c3d1b84

View File

@ -233,9 +233,10 @@ def checkSysctlParameter(kernelParameter, isSet):
# does not have vm.extfrag_threshold parameter, skip check # does not have vm.extfrag_threshold parameter, skip check
if (patchlevel == "1" and key == "vm.extfrag_threshold"): if (patchlevel == "1" and key == "vm.extfrag_threshold"):
continue continue
# Skip check net.ipv4.tcp_tw_recycle with ARM sysFile = "/proc/sys/%s" % key.replace('.', '/')
if ((platform.machine() == "aarch64" or platform.release().endswith("oe1.x86_64")) # High version of linux no longer supports tcp_tw_recycle
and key == "net.ipv4.tcp_tw_recycle"): if not os.path.exists(
sysFile) and key == "net.ipv4.tcp_tw_recycle":
continue continue
if (DefaultValue.checkDockerEnv() and key in docker_no_need_check): if (DefaultValue.checkDockerEnv() and key in docker_no_need_check):
continue continue