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

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