mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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