[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[et-mgmt-tools] [patch 2/8] Make virt-install use DistroInstaller



A simple patch to make virt-install instantiate the appropriate
guest type with a DistroInstaller instance. This should be the
same as passing installer=None to the guest constructors.

Signed-off-by: Mark McLoughlin <markmc redhat com>

Index: virtinst--devel/virt-install
===================================================================
--- virtinst--devel.orig/virt-install
+++ virtinst--devel/virt-install
@@ -516,10 +516,12 @@ def main():
             elif virtinst.util.is_kqemu_capable():
                 type = "kqemu"
 
+    installer = virtinst.DistroInstaller(type = type)
+
     if hvm:
-        guest = virtinst.FullVirtGuest(connection=conn, type=type, arch=options.arch)
+        guest = virtinst.FullVirtGuest(connection=conn, installer=installer, arch=options.arch)
     else:
-        guest = virtinst.ParaVirtGuest(connection=conn, type=type)
+        guest = virtinst.ParaVirtGuest(connection=conn, installer=installer)
 
     # now let's get some of the common questions out of the way
     get_name(options.name, guest)

-- 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]