--- autopart.py | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/autopart.py b/autopart.py index 7230e9e..d78c4a0 100644 --- a/autopart.py +++ b/autopart.py @@ -1020,10 +1020,7 @@ def processPartitioning(diskset, requests, newParts): elif request.preexist: # we need to keep track of the max size of preexisting partitions # FIXME: we should also get the max size for LVs at some point - for drive in request.drive: - part = diskset.disks[drive].getPartitionByPath("/dev/%s" % request.device) - if part: - break + part = diskset.disks[request.drive].getPartitionByPath("/dev/%s" % request.device) request.maxResizeSize = part.getMaxAvailableSize(unit="MB") ## print("disk layout after everything is done") -- 1.6.1.3 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list