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

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

 



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

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)

-- 


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux