[PATCH 3/4] Update parted partition by sector, not name, after create. (#733449)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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(start)
+        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(self.path)
         StorageDevice._postCreate(self)
         self._currentSize = self.partedPartition.getSize()
 
-- 
1.7.3.4

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


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux