[Pkg-libvirt-commits] [libguestfs] 09/14: v2v: Kill kudzu dead.

Hilko Bengen bengen at moszumanska.debian.org
Sat Aug 30 08:29:05 UTC 2014


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

bengen pushed a commit to annotated tag upstream/1.27.20
in repository libguestfs.

commit 120d61cf56f7ad76be32b454df5d628c4e7f5501
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon Jun 30 14:14:08 2014 +0100

    v2v: Kill kudzu dead.
---
 v2v/convert_linux.ml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
index 5c1d3bf..63ff22d 100644
--- a/v2v/convert_linux.ml
+++ b/v2v/convert_linux.ml
@@ -704,6 +704,19 @@ let rec convert ?(keep_serial_console = true) verbose (g : G.guestfs)
         (* Re-generate the grub2 config, and put it in the correct place *)
         ignore (g#command [| "grub2-mkconfig"; "-o"; "/boot/grub2/grub.cfg" |])
 
+  and unconfigure_kudzu () =
+    (* Disable kudzu in the guest
+     * Kudzu will detect the changed network hardware at boot time and
+     * either:
+     * - require manual intervention, or
+     * - disable the network interface
+     * Neither of these behaviours is desirable.
+     *)
+    if g#is_file ~followsymlinks:true "/etc/init.d/kudzu"
+      && g#is_file ~followsymlinks:true "/sbin/chkconfig" then (
+        ignore (g#command [| "/sbin/chkconfig"; "kudzu"; "off" |])
+      )
+
   and configure_kernel () =
     (* Previously this function would try to install kernels, but we
      * don't do that any longer.
@@ -1002,6 +1015,7 @@ let rec convert ?(keep_serial_console = true) verbose (g : G.guestfs)
   unconfigure_vmware ();
   unconfigure_citrix ();
   unconfigure_efi ();
+  unconfigure_kudzu ();
 
   let virtio = configure_kernel () in
 

-- 
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