summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-08-27 19:00:12 +0000
committerJeremy Katz <katzj@redhat.com>2004-08-27 19:00:12 +0000
commitfe6ab48092666defca8ae05eda8793bf856db843 (patch)
tree9dc997cd4468473946fe70e71e479ae345ca3935 /textw
parentcbb87b93f925a052252a369aa0b8de0c9e0ed656 (diff)
downloadanaconda-fe6ab48092666defca8ae05eda8793bf856db843.tar.gz
anaconda-fe6ab48092666defca8ae05eda8793bf856db843.tar.xz
anaconda-fe6ab48092666defca8ae05eda8793bf856db843.zip
make sure the partition is active before we try to do any complicated things
with it. avoids a parted assertion when checking for the flag on a non active partition
Diffstat (limited to 'textw')
-rw-r--r--textw/partition_text.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index 403468146..b44f1481f 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -121,6 +121,9 @@ class PartitionWindow:
# print "partition %s has type %d" %(get_partition_name(part), part.type)
part = disk.next_partition(part)
continue
+ if not part.is_active():
+ part = disk.next_partition(part)
+ continue
# ignore the tiny < 1 MB partitions (#119479)
if getPartSizeMB(part) <= 1.0 and not part.get_flag(parted.PARTITION_BOOT):
part = disk.next_partition(part)