mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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