1
0
Fork 0

Allow equal characters in parameter value

this fixes tuned verification when configuring module parameters such
as:

    onload=cplane_server_params=--affinity=0x100000000

Tuned correctly sets them like this:

    $ cat /etc/modprobe.d/tuned.conf
    options onload cplane_server_params=--affinity=0x100000000
    $ cat /sys/module/onload/parameters/cplane_server_params
    --affinity=0x100000000

However, before this change tuned reports verification failure whenever
a parameter value contains an equal sign.

Signed-off-by: Georg Sauthoff <mail@gms.tf>
This commit is contained in:
Georg Sauthoff 2023-10-29 16:02:51 +01:00
parent 569c6f58e1
commit ef88cf1f2e

View file

@ -124,7 +124,7 @@ class ModulesPlugin(base.Plugin):
log.info(consts.STR_VERIFY_PROFILE_OK % "module '%s' is loaded" % module)
l = r.split(v)
for item in l:
arg = item.split("=")
arg = item.split("=", 1)
if len(arg) != 2:
log.warn("unrecognized module option for module '%s': %s" % (module, item))
else: