Ack, ship it :) On 01/13/2010 04:55 PM, David Lehman wrote:
This becomes important when removing a disklabel from a device which has a disklabel and partitions but which is not something we support partitioning (eg: lvm lv). In normal cases the partitions will already have been removed, but in the case of an unsupported partitioned device we ignore the partitions when scanning and so have to remove them this way. --- storage/formats/disklabel.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/storage/formats/disklabel.py b/storage/formats/disklabel.py index e5fab94..8d278b2 100644 --- a/storage/formats/disklabel.py +++ b/storage/formats/disklabel.py @@ -229,6 +229,9 @@ class DiskLabel(DeviceFormat): if not os.access(self.device, os.W_OK): raise DeviceFormatError("device path does not exist") + self._partedDisk = parted.freshDisk(device=self.partedDevice, + ty=self.partedDisk.type) + self.commit() self.partedDevice.clobber() self.commit() self.exists = False
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list