anaconda: fix partition requirements setup

Removing elements from a list while iterating over it cause some
elements to be missed. Specifically, this caused /boot/efi to be skipped
and left unmodified.

Fix that by iterating over list copy.

Fixes QubesOS/qubes-issues#3224
This commit is contained in:
Marek Marczykowski-Górecki 2018-10-30 04:13:27 +01:00
parent 558bd2612a
commit a7f17acd13
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -84,7 +84,7 @@ index 000000000..e98912b63
+ def setDefaultPartitioning(self, storage):
+ BaseInstallClass.setDefaultPartitioning(self,
+ storage)
+ for autoreq in storage.autopart_requests:
+ for autoreq in list(storage.autopart_requests):
+ if autoreq.mountpoint == "/":
+ autoreq.max_size=None
+ autoreq.required_space=Size("10GiB")