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 | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/storage/formats/disklabel.py b/storage/formats/disklabel.py index e5fab94..bbc3528 100644 --- a/storage/formats/disklabel.py +++ b/storage/formats/disklabel.py @@ -229,6 +229,8 @@ class DiskLabel(DeviceFormat): if not os.access(self.device, os.W_OK): raise DeviceFormatError("device path does not exist") + self._partedDisk = self.freshPartedDisk() + self.commit() self.partedDevice.clobber() self.commit() self.exists = False -- 1.6.5.2 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list