| |
@@ -5376,6 +5376,7 @@
|
| |
"RPMs in the LiveCD. May be used multiple times. The " +
|
| |
"build tag repo associated with the target is the default."))
|
| |
parser.add_option("--release", help=_("Forcibly set the release field"))
|
| |
+ parser.add_option("--volid", help=_("Set the volume id"))
|
| |
parser.add_option("--specfile", metavar="URL",
|
| |
help=_("SCM URL to spec file fragment to use to generate wrapper RPMs"))
|
| |
parser.add_option("--skip-tag", action="store_true",
|
| |
@@ -5389,6 +5390,8 @@
|
| |
" architecture, a build target, and a relative path to" +
|
| |
" a kickstart file."))
|
| |
assert False # pragma: no cover
|
| |
+ if task_options.volid is not None and len(task_options.volid) > 32:
|
| |
+ parser.error(_('Volume ID has a maximum length of 32 characters'))
|
| |
return _build_image(options, task_options, session, args, 'livecd')
|
| |
|
| |
|
| |
@@ -5424,6 +5427,7 @@
|
| |
"build tag repo associated with the target is the default."))
|
| |
parser.add_option("--release", help=_("Forcibly set the release field"))
|
| |
parser.add_option("--title", help=_("Set the image title (defaults to <name>)"))
|
| |
+ parser.add_option("--volid", help=_("Set the volume id"))
|
| |
parser.add_option("--specfile", metavar="URL",
|
| |
help=_("SCM URL to spec file fragment to use to generate wrapper RPMs"))
|
| |
parser.add_option("--skip-tag", action="store_true",
|
| |
@@ -5449,6 +5453,8 @@
|
| |
if task_options.lorax_url is not None and task_options.lorax_dir is None:
|
| |
parser.error(_('The "--lorax_url" option requires that "--lorax_dir" '
|
| |
'also be used.'))
|
| |
+ if task_options.volid is not None and len(task_options.volid) > 32:
|
| |
+ parser.error(_('Volume ID has a maximum length of 32 characters'))
|
| |
return _build_image(options, task_options, session, args, 'livemedia')
|
| |
|
| |
|
| |
@@ -5827,7 +5833,7 @@
|
| |
passthru_opts = [
|
| |
'format', 'install_tree_url', 'isoname', 'ksurl',
|
| |
'ksversion', 'release', 'repo', 'scratch', 'skip_tag',
|
| |
- 'specfile', 'title', 'vcpu', 'vmem', 'optional_arches',
|
| |
+ 'specfile', 'title', 'vcpu', 'vmem', 'volid', 'optional_arches',
|
| |
'lorax_dir', 'lorax_url',
|
| |
]
|
| |
for opt in passthru_opts:
|
| |