kiwi: Add support for overriding image type attributes
This allows setting things like the volume and application IDs for ISO builds.
This commit is contained in:
parent
fdb00d34dd
commit
b22449c553
3 changed files with 12 additions and 1 deletions
|
|
@ -28,6 +28,9 @@ def handle_kiwi_build(goptions, session, args):
|
|||
parser.add_option("--kiwi-profile", action="store", default=None,
|
||||
help="Select profile from description file")
|
||||
parser.add_option("--type", help="Override default build type from description")
|
||||
parser.add_option("--type-attr", action="append", default=[],
|
||||
help="Override default attributes for the build type from description. "
|
||||
"May be used multiple times.")
|
||||
parser.add_option("--make-prep", action="store_true", default=False,
|
||||
help="Run 'make prep' in checkout before starting the build")
|
||||
parser.add_option("--can-fail", action="store", dest="optional_arches",
|
||||
|
|
@ -68,6 +71,8 @@ def handle_kiwi_build(goptions, session, args):
|
|||
kwargs['make_prep'] = True
|
||||
if options.type:
|
||||
kwargs['type'] = options.type
|
||||
if options.type_attr:
|
||||
kwargs['type_attr'] = options.type_attr
|
||||
if options.arches:
|
||||
kwargs['arches'] = [canonArch(arch) for arch in options.arches]
|
||||
if options.repo:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue