support ubuntu system
This commit is contained in:
@ -1696,7 +1696,11 @@ def CheckIOSchedulers(isSetting=False):
|
||||
input : Bool
|
||||
output : NA
|
||||
"""
|
||||
|
||||
# The IO Schedulers in ubuntu system is default value,
|
||||
# so that it cannot be modified
|
||||
distname, version = g_Platform.dist()[0:2]
|
||||
if distname == "debian" and version == "buster/sid":
|
||||
return
|
||||
data = collectIOschedulers()
|
||||
for dev in list(data.devices.keys()):
|
||||
expectedScheduler = "deadline"
|
||||
@ -1926,6 +1930,9 @@ def CheckPlatformInfo():
|
||||
elif (data.distname == "euleros" or data.distname == "openEuler" or data.distname == "kylin"):
|
||||
mixedType = "%s" % data.distname
|
||||
platformStr = "%s_%s_%s" % (data.distname, data.version, data.bits)
|
||||
elif (data.distname == "debian" or data.version == "buster/sid"):
|
||||
mixedType = "%s" % data.distname
|
||||
platformStr = "%s_%s_%s" % (data.distname, data.version, data.bits)
|
||||
else:
|
||||
platformStr = "%s_%s_%s" % (data.distname, data.version, data.bits)
|
||||
g_logger.log("False unknown %s" % platformStr)
|
||||
|
Reference in New Issue
Block a user