mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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