FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 09-02-2011, 06:32 PM
David Lehman
 
Default Update parted partition by sector, not name, after create. (#733449)

---
pyanaconda/storage/devices.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index cf68b57..0491e1c 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -1484,12 +1484,14 @@ class PartitionDevice(StorageDevice):
raise

def _postCreate(self):
+ start = self.partedPartition.geometry.start
+ partition = self.disk.format.partedDisk.getPartitionBySector(s tart)
+ self.partedPartition = partition
if not self.isExtended:
# Ensure old metadata which lived in freespace so did not get
# explictly destroyed by a destroyformat action gets wiped
DeviceFormat(device=self.path, exists=True).destroy()

- self.partedPartition = self.disk.format.partedDisk.getPartitionByPath(sel f.path)
StorageDevice._postCreate(self)
self._currentSize = self.partedPartition.getSize()

--
1.7.3.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 10:54 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org