[Libguestfs] [v2v PATCH] output_qemu: pass "=on" with "readonly" to "-drive"
Laszlo Ersek
lersek at redhat.com
Mon May 9 08:27:11 UTC 2022
> qemu-system-x86_64: -drive
> if=pflash,format=raw,file=/usr/share/OVMF/OVMF_CODE.fd,readonly: warning:
> short-form boolean option 'readonly' deprecated
> Please use readonly=on instead
Reported-by: Ming Xie <mxie at redhat.com>
Signed-off-by: Laszlo Ersek <lersek at redhat.com>
---
output/output_qemu.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/output/output_qemu.ml b/output/output_qemu.ml
index 29adcba901a3..3269fba501e4 100644
--- a/output/output_qemu.ml
+++ b/output/output_qemu.ml
@@ -164,7 +164,7 @@ module QEMU = struct
arg_list "-global"
["driver=cfi.pflash01"; "property=secure"; "value=on"];
arg_list "-drive"
- ["if=pflash"; "format=raw"; "file=" ^ code; "readonly"];
+ ["if=pflash"; "format=raw"; "file=" ^ code; "readonly=on"];
arg_noquote "-drive" "if=pflash,format=raw,file=\"$uefi_vars\"";
);
base-commit: 03c7f0561081ca5c9fce8a89191a230c5f1add23
--
2.19.1.3.g30247aa5d201
More information about the Libguestfs
mailing list