Looks ok, Regards, Hans On 05/13/2009 11:48 PM, Chris Lumens wrote:
--- storage/devices.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/storage/devices.py b/storage/devices.py index 8213379..bb724ed 100644 --- a/storage/devices.py +++ b/storage/devices.py @@ -709,6 +709,13 @@ class DiskDevice(StorageDevice): if initcb is not None and initcb(): self.partedDisk = parted.freshDisk(device=self.partedDevice, \ ty = platform.getPlatform(None).diskType) + + # If we've initialized the disk, we also need to commit + # the change now. At least on Macs, creating a new + # disk label means we've also created a partition. We + # need the system to reflect that immediately. + if self.partedDisk: + self.partedDisk.commit() else: raise DeviceUserDeniedFormatError("User prefered to not format.")
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list