om check适配修改·
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user