[Pkg-libvirt-commits] [libguestfs] 12/17: v2v: -o qemu: Only add a serial console to Linux guests.

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 3 14:48:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag debian/1%1.27.55-1
in repository libguestfs.

commit f7cd8b4d1069e4b58b4e4391ef84bddd6a3e2735
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Fri Sep 26 14:06:22 2014 +0100

    v2v: -o qemu: Only add a serial console to Linux guests.
    
    Makes no sense for Windows guests.
---
 v2v/output_qemu.ml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/v2v/output_qemu.ml b/v2v/output_qemu.ml
index 3b3e865..2ffe300 100644
--- a/v2v/output_qemu.ml
+++ b/v2v/output_qemu.ml
@@ -81,8 +81,9 @@ object
           net_bus i (match nic.s_mac with None -> "" | Some mac -> ",mac=" ^ mac)
     ) source.s_nics;
 
-    (* Add a serial console. *)
-    fpf "%s-serial stdio" nl;
+    (* Add a serial console to Linux guests. *)
+    if inspect.i_type = "linux" then
+      fpf "%s-serial stdio" nl;
 
     (* XXX Missing:
      * - removable devices

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list