On Wed, Mar 18, 2009 at 07:23:29PM +0100, Joel Granados Moreno wrote: > @@ -1353,6 +1468,11 @@ class DeviceTree(object): > for dev in devices: > self.addUdevDevice(dev) > > + # After having the complete tree we make sure that the system > + # inconsistencies are ignored or resolved. > + for leaf in self.leaves: > + self._handleInconsistencies(leaf) > + > self.teardownAll() > > def teardownAll(self): > diff --git a/storage/formats/lvmpv.py b/storage/formats/lvmpv.py > index cc243eb..ca11130 100644 > --- a/storage/formats/lvmpv.py > +++ b/storage/formats/lvmpv.py > @@ -106,7 +106,11 @@ class LVMPhysicalVolume(DeviceFormat): > raise PhysicalVolumeError("device is active") > > # FIXME: verify path exists? > - lvm.pvremove(self.device) > + try: > + lvm.pvremove(self.device) > + except LVMError: > + lvm.zeroLvmMetadata(self.path) This is device instead of path. > + > self.exists = False > self.notifyKernel() > > -- > 1.6.0.6 > > _______________________________________________ > Anaconda-devel-list mailing list > Anaconda-devel-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/anaconda-devel-list -- Joel Andres Granados Brno, Czech Republic, Red Hat. _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list