Blame SOURCES/0205-RHEL-7-v2v-Refuse-to-convert-Windows-7-RHBZ-1184690-.patch

ffd6ed
From 9b03c249b8ee825bd40b9562ca3932e9a1a26229 Mon Sep 17 00:00:00 2001
ffd6ed
From: "Richard W.M. Jones" <rjones@redhat.com>
ffd6ed
Date: Tue, 7 Jul 2015 05:16:29 -0400
ffd6ed
Subject: [PATCH] RHEL 7: v2v: Refuse to convert Windows > 7 (RHBZ#1184690,
ffd6ed
 RHBZ#1190669).
ffd6ed
ffd6ed
---
ffd6ed
 v2v/convert_windows.ml | 6 +++++-
ffd6ed
 1 file changed, 5 insertions(+), 1 deletion(-)
ffd6ed
ffd6ed
diff --git a/v2v/convert_windows.ml b/v2v/convert_windows.ml
ffd6ed
index dc67040..a89c908 100644
ffd6ed
--- a/v2v/convert_windows.ml
ffd6ed
+++ b/v2v/convert_windows.ml
ffd6ed
@@ -502,7 +502,11 @@ echo uninstalling Xen PV driver
ffd6ed
 
ffd6ed
 let () =
ffd6ed
   let matching = function
ffd6ed
-    | { i_type = "windows" } -> true
ffd6ed
+    | { i_type = "windows";
ffd6ed
+        i_major_version = major; i_minor_version = minor }
ffd6ed
+      when (major == 6 && minor < 2) || major < 6 -> true
ffd6ed
+    | { i_type = "windows" } ->
ffd6ed
+      error "virt-v2v cannot be used to convert Windows > 7 / 2008R2 (see https://bugzilla.redhat.com/1190669)"
ffd6ed
     | _ -> false
ffd6ed
   in
ffd6ed
   Modules_list.register_convert_module matching "windows" convert
ffd6ed
-- 
ffd6ed
1.8.3.1
ffd6ed