[Libguestfs] [PATCH v2 01/11] v2v: also search for windows virtio drivers in symlinks

Cédric Bosdonnat cbosdonnat at suse.com
Wed May 18 12:00:49 UTC 2016


To allow saving space in the package shipping the windows virtio
drivers, we can use symlinks between the drivers folders. For example
SUSE VMDP drivers are the same for Win8.1 and Win2012r2, one folder
is a symlink to the other.

To take advantages of this, find must use the -L flag.
---
 v2v/windows_virtio.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/v2v/windows_virtio.ml b/v2v/windows_virtio.ml
index be50107..7e9f735 100644
--- a/v2v/windows_virtio.ml
+++ b/v2v/windows_virtio.ml
@@ -222,7 +222,7 @@ and ddb_regedits current_cs drv_name drv_pciid =
 and copy_drivers g inspect driverdir =
   let ret = ref false in
   if is_directory virtio_win then (
-    let cmd = sprintf "cd %s && find -type f" (quote virtio_win) in
+    let cmd = sprintf "cd %s && find -L -type f" (quote virtio_win) in
     let paths = external_command cmd in
     List.iter (
       fun path ->
-- 
2.6.6




More information about the Libguestfs mailing list