kojid: permit forcing releasever within mock per tag

This commit is contained in:
Pat Riehecky 2022-03-04 15:34:52 -06:00 committed by Tomas Kopecek
parent 2af7e756dd
commit a50ca237c7
4 changed files with 8 additions and 0 deletions

View file

@ -1638,6 +1638,8 @@ def genMockConfig(name, arch, managed=False, repoid=None, tag_name=None, **opts)
config_opts['use_bootstrap'] = bool(opts['use_bootstrap'])
if 'module_setup_commands' in opts:
config_opts['module_setup_commands'] = opts['module_setup_commands']
if 'releasever' in opts:
config_opts['releasever'] = opts['releasever']
# bind_opts are used to mount parts (or all of) /dev if needed.
# See kojid::LiveCDTask for a look at this option in action.