v2v: windows: Print calculated virtio_win in debugging output.

So we know where drivers are being installed from, and whether
that is a directory or a CD/ISO.

(cherry picked from commit a8b4d2749b)
This commit is contained in:
Richard W.M. Jones
2018-04-20 12:26:26 +01:00
parent 0a164fe364
commit 916f5fa786

View File

@@ -256,6 +256,8 @@ and ddb_regedits inspect drv_name drv_pciid =
and copy_drivers g inspect driverdir =
let ret = ref false in
if is_directory virtio_win then (
debug "windows: copy_drivers: source directory virtio_win %s" virtio_win;
let cmd = sprintf "cd %s && find -L -type f" (quote virtio_win) in
let paths = external_command cmd in
List.iter (
@@ -273,6 +275,8 @@ and copy_drivers g inspect driverdir =
) paths
)
else if is_regular_file virtio_win then (
debug "windows: copy_drivers: source ISO virtio_win %s" virtio_win;
try
let g2 = open_guestfs ~identifier:"virtio_win" () in
g2#add_drive_opts virtio_win ~readonly:true;