Support VMDK subformat in qemu assembler
This commit is contained in:
parent
bbe6127ddb
commit
f41edba1fb
1 changed files with 10 additions and 0 deletions
|
|
@ -63,6 +63,11 @@ SCHEMA = """
|
||||||
"description": "The qcow2-compatibility-version to use",
|
"description": "The qcow2-compatibility-version to use",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"vmdk_subformat": {
|
||||||
|
"description": "VMDK flat extent format",
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["monolithicSparse", "monolithicFlat", "twoGbMaxExtentSparse", "twoGbMaxExtentFlat", "streamOptimized"]
|
||||||
|
},
|
||||||
"filename": {
|
"filename": {
|
||||||
"description": "Image filename",
|
"description": "Image filename",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
|
@ -618,6 +623,7 @@ def install_zipl(root: str, device: str, pt: PartitionTable):
|
||||||
check=True)
|
check=True)
|
||||||
|
|
||||||
|
|
||||||
|
#pylint: disable=too-many-branches
|
||||||
def main(tree, output_dir, options, loop_client):
|
def main(tree, output_dir, options, loop_client):
|
||||||
fmt = options["format"]
|
fmt = options["format"]
|
||||||
filename = options["filename"]
|
filename = options["filename"]
|
||||||
|
|
@ -699,6 +705,10 @@ def main(tree, output_dir, options, loop_client):
|
||||||
if compat:
|
if compat:
|
||||||
extra_args["qcow2"] += ["-o", f"compat={compat}"]
|
extra_args["qcow2"] += ["-o", f"compat={compat}"]
|
||||||
|
|
||||||
|
vmdk_subformat = options.get("vmdk_subformat")
|
||||||
|
if vmdk_subformat:
|
||||||
|
extra_args["vmdk"] += ["-o", f"subformat={vmdk_subformat}"]
|
||||||
|
|
||||||
coroutines = os.environ.get("OSBUILD_QEMU_IMG_COROUTINES")
|
coroutines = os.environ.get("OSBUILD_QEMU_IMG_COROUTINES")
|
||||||
if coroutines:
|
if coroutines:
|
||||||
print(f"qemu-img coroutines: {coroutines}")
|
print(f"qemu-img coroutines: {coroutines}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue