Blame SOURCES/0016-v2v-Fix-default-graphics-driver-for-SUSE-guests.patch

5c13d3
From 671a0fcc1ee68c178852fbed9a44e123ccf9b73c Mon Sep 17 00:00:00 2001
5c13d3
From: Mike Latimer <mlatimer@suse.com>
5c13d3
Date: Mon, 25 Mar 2019 14:38:00 +0000
5c13d3
Subject: [PATCH] v2v: Fix default graphics driver for SUSE guests.
5c13d3
5c13d3
See discussion in this upstream thread:
5c13d3
https://www.redhat.com/archives/libguestfs/2019-February/thread.html#00047
5c13d3
5c13d3
Thanks: Mike Latimer, Pino Toscano.
5c13d3
(cherry picked from commit 612f170e6062f2ff74643b6096b7e0765b52cfbd)
5c13d3
---
5c13d3
 v2v/convert_linux.ml | 5 +----
5c13d3
 1 file changed, 1 insertion(+), 4 deletions(-)
5c13d3
5c13d3
diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
5c13d3
index b4b2f24c4..f9e811c8d 100644
5c13d3
--- a/v2v/convert_linux.ml
5c13d3
+++ b/v2v/convert_linux.ml
5c13d3
@@ -104,7 +104,7 @@ let convert (g : G.guestfs) inspect source output rcaps =
5c13d3
 
5c13d3
     let video =
5c13d3
       match rcaps.rcaps_video with
5c13d3
-      | None -> get_display_driver ()
5c13d3
+      | None -> QXL
5c13d3
       | Some video -> video in
5c13d3
 
5c13d3
     let block_type =
5c13d3
@@ -783,9 +783,6 @@ let convert (g : G.guestfs) inspect source output rcaps =
5c13d3
     else
5c13d3
       true
5c13d3
 
5c13d3
-  and get_display_driver () =
5c13d3
-    if family = `SUSE_family then Cirrus else QXL
5c13d3
-
5c13d3
   and configure_display_driver video =
5c13d3
     let video_driver = match video with QXL -> "qxl" | Cirrus -> "cirrus" in
5c13d3
 
5c13d3
-- 
5c13d3
2.21.0
5c13d3