contrib/bkr: make configuration options for logging.level and main.dhcp configurable

$ ./brk.py -V "CONF_LOGLEVEL=INFO -V CONF_DHCP=internal
This commit is contained in:
Thomas Haller 2015-04-21 12:23:14 +02:00
parent aae4d65d7c
commit dc98f74efc
2 changed files with 4 additions and 1 deletions

View file

@ -663,6 +663,9 @@ class CmdSubmit(CmdBase):
'UUID' : str(uuid.uuid4()),
'RESERVESYS' : _process_line_get_RESERVESYS,
'SELINUX_DISABLED' : _process_line_get_SELINUX_DISABLED,
'CONF_LOGLEVEL' : 'DEBUG',
'CONF_DHCP' : 'dhclient',
'CONF_DEBUG' : 'RLIMIT_CORE,fatal-warnings',
}
def _process_line_get(self, key, replacement, index=None, none=None):
if key in replacement:

View file

@ -53,7 +53,7 @@
</task>
<task name="/distribution/command" role="STANDALONE">
<params>
<param name="CMDS_TO_RUN" value="sed -i '$$s/$$/\n[logging]\n level=DEBUG\n domains=ALL\n\n[main]\n debug=RLIMIT_CORE\n/' /etc/NetworkManager/NetworkManager.conf"/>
<param name="CMDS_TO_RUN" value="mkdir -p /etc/NetworkManager/conf.d/; printf '[main]\n debug=$CONF_DEBUG\n dhcp=$CONF_DHCP\n\n[logging]\n level=$CONF_LOGLEVEL\n domains=ALL\n\n' > /etc/NetworkManager/conf.d/99-test.conf"/>
</params>
</task>
<task name="/distribution/command" role="STANDALONE">