summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2012-10-10 11:18:31 -0500
committerDavid Lehman <dlehman@redhat.com>2012-10-12 09:24:55 -0500
commitc6f82dde8eccc3eba757a0331ccce2b89f006e18 (patch)
tree7a313ca6eaed3e66c576110dab5070918c30a5f3
parent99ea40844d8a02d2c5ebff26003fdf41a9d58428 (diff)
downloadanaconda-c6f82dde8eccc3eba757a0331ccce2b89f006e18.tar.gz
anaconda-c6f82dde8eccc3eba757a0331ccce2b89f006e18.tar.xz
anaconda-c6f82dde8eccc3eba757a0331ccce2b89f006e18.zip
Use devicetree as partition list source instead of parted. (#864718)
The parted list should be pretty much in sync, but this way saves some trouble with resolving the parted partition paths to devices in the devicetree.
-rw-r--r--pyanaconda/ui/gui/spokes/lib/resize.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pyanaconda/ui/gui/spokes/lib/resize.py b/pyanaconda/ui/gui/spokes/lib/resize.py
index 2bfac70bb..378180745 100644
--- a/pyanaconda/ui/gui/spokes/lib/resize.py
+++ b/pyanaconda/ui/gui/spokes/lib/resize.py
@@ -120,9 +120,7 @@ class ResizeDialog(GUIObject):
diskReclaimableSpace = 0
# Then add all its partitions.
- for part in disk.format.partitions:
- dev = self.storage.devicetree.getDeviceByPath(part.path)
-
+ for dev in self.storage.devicetree.getChildren(disk):
if dev.isExtended and disk.format.logicalPartitions:
continue