diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-08-27 19:00:12 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-08-27 19:00:12 +0000 |
commit | fe6ab48092666defca8ae05eda8793bf856db843 (patch) | |
tree | 9dc997cd4468473946fe70e71e479ae345ca3935 /textw | |
parent | cbb87b93f925a052252a369aa0b8de0c9e0ed656 (diff) | |
download | anaconda-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.py | 3 |
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) |