[PATCH] virtinst - fix virt-image nad running livecd's

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

 



It seems that checking 271:a94b50696c3d broke both virt-image and
running livecd's The attached patch fixes that. I have tried the patch
for the various install methods, but would appreciate if somebody else
could give it a spin.

David


Fix virt-image

diff -r fcbe26aa68b7 virtinst/FullVirtGuest.py
--- a/virtinst/FullVirtGuest.py	Sat Nov 17 12:36:23 2007 -0500
+++ b/virtinst/FullVirtGuest.py	Tue Nov 20 18:43:15 2007 -0800
@@ -206,10 +206,9 @@ class FullVirtGuest(Guest.XenGuest):
 
     def _prepare_install(self, meter):
         Guest.Guest._prepare_install(self, meter)
-        if self.location or self.cdrom:
-            self._installer.prepare(guest = self,
-                                    meter = meter,
-                                    distro = self.os_distro)
+        self._installer.prepare(guest = self,
+                                meter = meter,
+                                distro = self.os_distro)
         if self._installer.install_disk is not None:
             self._install_disks.append(self._installer.install_disk)
 
diff -r fcbe26aa68b7 virtinst/ImageManager.py
--- a/virtinst/ImageManager.py	Sat Nov 17 12:36:23 2007 -0500
+++ b/virtinst/ImageManager.py	Tue Nov 20 18:43:15 2007 -0800
@@ -8,8 +8,6 @@ import CapabilitiesParser as Cap
 import CapabilitiesParser as Cap
 import os
 import util
-
-import pdb
 
 class ImageInstallerException(RuntimeError):
     def __init__(self, msg):
@@ -79,7 +77,7 @@ class ImageInstaller(Guest.Installer):
                 d.driver_name = Guest.VirtualDisk.DRIVER_TAP
             d.target = m.target
 
-            guest.disks.append(d)
+            guest._install_disks.append(d)
 
     def _get_osblob(self, install, hvm, arch = None, loader = None):
         osblob = "<os>\n"
diff -r fcbe26aa68b7 virtinst/LiveCDInstaller.py
--- a/virtinst/LiveCDInstaller.py	Sat Nov 17 12:36:23 2007 -0500
+++ b/virtinst/LiveCDInstaller.py	Tue Nov 20 18:43:15 2007 -0800
@@ -45,7 +45,7 @@ class LiveCDInstaller(Guest.Installer):
         disk = Guest.VirtualDisk(self.location,
                                  device = Guest.VirtualDisk.DEVICE_CDROM,
                                  readOnly = True)
-        guest.disks.insert(0, disk)
+        guest._install_disks.insert(0, disk)
 
     def _get_osblob(self, install, hvm, arch = None, loader = None):
         if install:
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[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