osbuild/SOURCES/qemu-fix-compat-option.patch

30 lines
915 B
Diff

From 21ad9fa3992ba0f28750b5808cebdacdde104e08 Mon Sep 17 00:00:00 2001
From: Christian Kellner <christian@kellner.me>
Date: Wed, 22 Sep 2021 10:30:52 +0000
Subject: [PATCH] stages/qemu: fix 'compat' option
The option got renamed to `compat` (and moved into the `qemu`
object) when the stage was extracted from the `qemu` assembler;
but the code, taken from the assembler, still used the old
`qcow2_compat` name for the option. Fix this.
---
stages/org.osbuild.qemu | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stages/org.osbuild.qemu b/stages/org.osbuild.qemu
index bfefac3..cb6b3a8 100755
--- a/stages/org.osbuild.qemu
+++ b/stages/org.osbuild.qemu
@@ -126,7 +126,7 @@ SCHEMA_2 = r"""
def qcow2_arguments(options):
argv = ["-c"]
- compat = options.get("qcow2_compat")
+ compat = options.get("compat")
if compat:
argv += ["-o", f"compat={compat}"]
--
2.32.0