mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0019-v2v-Allow-Windows-virtio-ISO-to-be-a-block-device-as.patch

3efd08
From 4b94dac532dc17cde462479bf90ab2631006b80b Mon Sep 17 00:00:00 2001
3efd08
From: "Richard W.M. Jones" <rjones@redhat.com>
3efd08
Date: Thu, 4 Jul 2019 15:51:25 +0100
3efd08
Subject: [PATCH] v2v: Allow Windows virtio ISO to be a block device as well as
3efd08
 a regular file.
3efd08
3efd08
Thanks: Steven Rosenberg
3efd08
(cherry picked from commit c22a8b68fe5729d3a8907b41eef287cd9f3a55c0)
3efd08
---
3efd08
 v2v/windows_virtio.ml | 2 +-
3efd08
 1 file changed, 1 insertion(+), 1 deletion(-)
3efd08
3efd08
diff --git a/v2v/windows_virtio.ml b/v2v/windows_virtio.ml
3efd08
index 92bf3ec60..a6dc29f2c 100644
3efd08
--- a/v2v/windows_virtio.ml
3efd08
+++ b/v2v/windows_virtio.ml
3efd08
@@ -330,7 +330,7 @@ and copy_from_virtio_win g inspect srcdir destdir filter missing =
3efd08
       ) paths
3efd08
     )
3efd08
   )
3efd08
-  else if is_regular_file virtio_win then (
3efd08
+  else if is_regular_file virtio_win || is_block_device virtio_win then (
3efd08
     debug "windows: copy_from_virtio_win: guest tools source ISO %s" virtio_win;
3efd08
 
3efd08
     try
3efd08
-- 
3efd08
2.25.4
3efd08