Cancelling the resize actions in the order they were scheduled meant that the target size would end up being the size just prior to scheduling the last resize action -- not the initial size. This only matters if the user tries multiple sizes before resetting to the original size. --- pyanaconda/ui/gui/spokes/custom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py index ac6cab6..03463b7 100644 --- a/pyanaconda/ui/gui/spokes/custom.py +++ b/pyanaconda/ui/gui/spokes/custom.py @@ -1472,7 +1472,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): actions = self.__storage.devicetree.findActions(type="resize", devid=device.id) with ui_storage_logger(): - for action in actions: + for action in reversed(actions): self.__storage.devicetree.cancelAction(action) _changed_size = True elif size != device.size: