aarch64: use single qemu-img thread
Work around a bug on aarch64[1] where `qemu-img` would hang about a third of the time when converting images. To be able to activate the work-around based on the environment, i.e. only on certain distributions, introduce an environment variable, `OSBUILD_QEMU_IMG_COROUTINES`, that is set in the runner and then picked up in the assembler. [1] https://bugs.launchpad.net/qemu/+bug/1805256
This commit is contained in:
parent
1fbe4bb31a
commit
98a82ff47e
2 changed files with 24 additions and 1 deletions
|
|
@ -699,6 +699,11 @@ def main(tree, output_dir, options, loop_client):
|
|||
if compat:
|
||||
extra_args["qcow2"] += ["-o", f"compat={compat}"]
|
||||
|
||||
coroutines = os.environ.get("OSBUILD_QEMU_IMG_COROUTINES")
|
||||
if coroutines:
|
||||
print(f"qemu-img coroutines: {coroutines}")
|
||||
extra_args[fmt] += ["-m", coroutines]
|
||||
|
||||
subprocess.run([
|
||||
"qemu-img",
|
||||
"convert",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue