mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
v2v: Fix default graphics driver for SUSE guests.
See discussion in this upstream thread:
https://www.redhat.com/archives/libguestfs/2019-February/thread.html#00047
Thanks: Mike Latimer, Pino Toscano.
(cherry picked from commit 612f170e60)
This commit is contained in:
committed by
Pino Toscano
parent
5ad1e7c160
commit
1b409cee74
@@ -104,7 +104,7 @@ let convert (g : G.guestfs) inspect source output rcaps =
|
||||
|
||||
let video =
|
||||
match rcaps.rcaps_video with
|
||||
| None -> get_display_driver ()
|
||||
| None -> QXL
|
||||
| Some video -> video in
|
||||
|
||||
let block_type =
|
||||
@@ -783,9 +783,6 @@ let convert (g : G.guestfs) inspect source output rcaps =
|
||||
else
|
||||
true
|
||||
|
||||
and get_display_driver () =
|
||||
if family = `SUSE_family then Cirrus else QXL
|
||||
|
||||
and configure_display_driver video =
|
||||
let video_driver = match video with QXL -> "qxl" | Cirrus -> "cirrus" in
|
||||
|
||||
|
||||
Reference in New Issue
Block a user