summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-05-15 14:26:00 -0500
committerDavid Lehman <dlehman@redhat.com>2009-05-15 17:36:46 -0500
commit68a08eb49b6666d355055537d62653581a87bb80 (patch)
tree093481c29c68f2f89ad3d663578dac9b449c8dfb /iw
parent000c6640a2e20d11ac7e8aec228eac8f1789a909 (diff)
downloadanaconda-68a08eb49b6666d355055537d62653581a87bb80.tar.gz
anaconda-68a08eb49b6666d355055537d62653581a87bb80.tar.xz
anaconda-68a08eb49b6666d355055537d62653581a87bb80.zip
Don't schedule a format resize if reformat scheduled. (#500991)
Diffstat (limited to 'iw')
-rw-r--r--iw/lvm_dialog_gui.py3
-rw-r--r--iw/partition_dialog_gui.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
index 5102588e7..733b77602 100644
--- a/iw/lvm_dialog_gui.py
+++ b/iw/lvm_dialog_gui.py
@@ -1078,7 +1078,8 @@ class VolumeGroupEditor:
# check the lv's format also, explicitly, in case it is
# encrypted. in this case we must check them both.
if format.resizable and lv.format.resizable and \
- lv.targetSize != format.currentSize:
+ lv.targetSize != format.currentSize and \
+ usedev.format.exists:
new_size = lv.targetSize
actions.append(ActionResizeFormat(usedev, new_size))
elif lv.format.type:
diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index 8a098a42c..45748c2ee 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -291,7 +291,7 @@ class PartitionEditor:
try:
actions.append(ActionResizeDevice(request, size))
- if request.format.type:
+ if request.format.type and request.format.exists:
actions.append(ActionResizeFormat(request, size))
except ValueError:
pass