🐎 Use more CPUs for xz with qemu
Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
cab71e5b18
commit
8464e8d1dc
1 changed files with 8 additions and 1 deletions
|
|
@ -657,7 +657,14 @@ def main(tree, output_dir, options, loop_client):
|
|||
subprocess.run(["cp", image, f"{output_dir}/{filename}"], check=True)
|
||||
elif fmt == "raw.xz":
|
||||
with open(f"{output_dir}/{filename}", "w") as f:
|
||||
subprocess.run(["xz", "--keep", "--stdout", "-0", image], stdout=f, check=True)
|
||||
subprocess.run(
|
||||
["xz", "--keep", "--stdout", "-0", image],
|
||||
stdout=f,
|
||||
check=True,
|
||||
env={
|
||||
"XZ_OPT": "--threads 0"
|
||||
}
|
||||
)
|
||||
else:
|
||||
extra_args = {
|
||||
"qcow2": ["-c"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue