mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0060-v2v-fix-path-to-source-when-copying-files-from-guest.patch

498672
From 66cd34e84e41d3f70e95fa745637ba6eb4779aec Mon Sep 17 00:00:00 2001
10436e
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= <tgolembi@redhat.com>
10436e
Date: Fri, 8 Feb 2019 11:44:41 +0100
10436e
Subject: [PATCH] v2v: fix path to source when copying files from guest tools
10436e
 directory
10436e
MIME-Version: 1.0
10436e
Content-Type: text/plain; charset=UTF-8
10436e
Content-Transfer-Encoding: 8bit
10436e
10436e
The debug message was slightly changed too to better match the similar
10436e
message for ISO case. It refers to the root directory instead of the
10436e
specific subdirectory inside guest tools.
10436e
10436e
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
10436e
(cherry picked from commit f4bda5571a36da42bdc800c10f2c85cf20bf5c85)
10436e
---
10436e
 v2v/windows_virtio.ml | 7 ++++---
10436e
 1 file changed, 4 insertions(+), 3 deletions(-)
10436e
10436e
diff --git a/v2v/windows_virtio.ml b/v2v/windows_virtio.ml
10436e
index 7be63a316..70f0bf09d 100644
10436e
--- a/v2v/windows_virtio.ml
10436e
+++ b/v2v/windows_virtio.ml
10436e
@@ -309,10 +309,11 @@ and copy_drivers g inspect driverdir =
10436e
 and copy_from_virtio_win g inspect srcdir destdir filter missing =
10436e
   let ret = ref [] in
10436e
   if is_directory virtio_win then (
10436e
+    debug "windows: copy_from_virtio_win: guest tools source directory %s"
10436e
+      virtio_win;
498672
+
498672
     let dir = virtio_win // srcdir in
498672
-    debug "windows: copy_from_virtio_win: guest tools source directory %s" dir;
498672
-
10436e
-    if not (is_directory srcdir) then missing ()
10436e
+    if not (is_directory dir) then missing ()
10436e
     else (
10436e
       let cmd = sprintf "cd %s && find -L -type f" (quote dir) in
10436e
       let paths = external_command cmd in
10436e
-- 
498672
2.18.4
10436e