|
|
498672 |
From 52a4f93f1d8bb150167885c94df890af0d00d76d Mon Sep 17 00:00:00 2001
|
|
|
10436e |
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= <tgolembi@redhat.com>
|
|
|
10436e |
Date: Wed, 5 Feb 2020 14:11:35 +0100
|
|
|
10436e |
Subject: [PATCH] windows: fix detection of qemu-ga installer on RHV
|
|
|
10436e |
MIME-Version: 1.0
|
|
|
10436e |
Content-Type: text/plain; charset=UTF-8
|
|
|
10436e |
Content-Transfer-Encoding: 8bit
|
|
|
10436e |
|
|
|
10436e |
The detection was incorrectly matching only 32-bit installer on all
|
|
|
10436e |
architectures.
|
|
|
10436e |
|
|
|
10436e |
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
|
|
|
10436e |
|
|
|
10436e |
(cherry picked from commit 45acf8d0557bee948c035305a6bafc6c9963a467
|
|
|
10436e |
in virt-v2v)
|
|
|
10436e |
---
|
|
|
10436e |
v2v/windows_virtio.ml | 5 ++---
|
|
|
10436e |
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
10436e |
|
|
|
10436e |
diff --git a/v2v/windows_virtio.ml b/v2v/windows_virtio.ml
|
|
|
10436e |
index ea7e5c02d..9a7297344 100644
|
|
|
10436e |
--- a/v2v/windows_virtio.ml
|
|
|
10436e |
+++ b/v2v/windows_virtio.ml
|
|
|
10436e |
@@ -444,14 +444,13 @@ and virtio_iso_path_matches_qemu_ga path inspect =
|
|
|
10436e |
* elements.
|
|
|
10436e |
*)
|
|
|
10436e |
let lc_name = String.lowercase_ascii (Filename.basename path) in
|
|
|
10436e |
- lc_name = "rhev-qga.msi" ||
|
|
|
10436e |
match arch, lc_name with
|
|
|
10436e |
| ("i386", "qemu-ga-x86.msi")
|
|
|
10436e |
| ("i386", "qemu-ga-i386.msi")
|
|
|
10436e |
- | ("i386", "RHEV-QGA.msi")
|
|
|
10436e |
+ | ("i386", "rhev-qga.msi")
|
|
|
10436e |
| ("x86_64", "qemu-ga-x64.msi")
|
|
|
10436e |
| ("x86_64", "qemu-ga-x86_64.msi")
|
|
|
10436e |
- | ("x86_64", "RHEV-QGA64.msi") -> true
|
|
|
10436e |
+ | ("x86_64", "rhev-qga64.msi") -> true
|
|
|
10436e |
| _ -> false
|
|
|
10436e |
|
|
|
10436e |
(* The following function is only exported for unit tests. *)
|
|
|
10436e |
--
|
|
|
498672 |
2.18.4
|
|
|
10436e |
|