mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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