Add nomacboot option for spin-livemedia

Fixes: https://pagure.io/koji/issue/2259
This commit is contained in:
Brendan Reilly 2020-10-15 13:37:47 -04:00 committed by Tomas Kopecek
parent cda754453b
commit c62f15172f
3 changed files with 6 additions and 2 deletions

View file

@ -5701,6 +5701,8 @@ def handle_spin_livemedia(options, session, args):
help=_('The URL to the SCM containing any custom lorax '
'templates that are to be used to override the '
'default templates.'))
parser.add_option('--nomacboot', action="store_true",
help=_("Pass the nomacboot option to livemedia-creator"))
(task_options, args) = parser.parse_args(args)
# Make sure the target and kickstart is specified.
@ -6083,7 +6085,7 @@ def _build_image(options, task_opts, session, args, img_type):
'format', 'install_tree_url', 'isoname', 'ksurl',
'ksversion', 'release', 'repo', 'scratch', 'skip_tag',
'specfile', 'vcpu', 'vmem', 'volid', 'optional_arches',
'lorax_dir', 'lorax_url',
'lorax_dir', 'lorax_url', 'nomacboot',
]
for opt in passthru_opts:
val = getattr(task_opts, opt, None)