mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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