[Libguestfs] [PATCH] v2v: Allow Windows virtio ISO to be a block device as well as a regular file.

Richard W.M. Jones rjones at redhat.com
Thu Jul 4 14:52:20 UTC 2019


Thanks: Steven Rosenberg
---
 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 59b0bf493..56c7a6757 100644
--- a/v2v/windows_virtio.ml
+++ b/v2v/windows_virtio.ml
@@ -338,7 +338,7 @@ and copy_from_virtio_win g inspect srcdir destdir filter missing =
       ) paths
     )
   )
-  else if is_regular_file virtio_win then (
+  else if is_regular_file virtio_win || is_block_device virtio_win then (
     debug "windows: copy_from_virtio_win: guest tools source ISO %s" virtio_win;
 
     try
-- 
2.22.0




More information about the Libguestfs mailing list