[Libguestfs] [v2v PATCH] windows: use libosinfo only for in-disk virtio-win

Pino Toscano ptoscano at redhat.com
Wed Nov 25 10:10:44 UTC 2020


Try to install the Windows drivers from virtio-win only in case it is
requested from a local directory (and not an ISO, or a block file).
---
 v2v/windows_virtio.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/v2v/windows_virtio.ml b/v2v/windows_virtio.ml
index 4e00cd61..207fff2e 100644
--- a/v2v/windows_virtio.ml
+++ b/v2v/windows_virtio.ml
@@ -298,7 +298,7 @@ and ddb_regedits inspect drv_name drv_pciid =
  * been copied.
  *)
 and copy_drivers g inspect driverdir =
-  [] <> copy_from_libosinfo g inspect driverdir ||
+  (is_directory virtio_win && [] <> copy_from_libosinfo g inspect driverdir) ||
     [] <> copy_from_virtio_win g inspect "/" driverdir
       virtio_iso_path_matches_guest_os
       (fun () ->
-- 
2.28.0




More information about the Libguestfs mailing list