Skip to content

Commit

Permalink
anaconda: fix partition requirements setup
Browse files Browse the repository at this point in the history
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
  • Loading branch information
marmarek committed Oct 30, 2018
1 parent 558bd26 commit a7f17ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anaconda/0001-anaconda-add-Qubes-installclass.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a7f17ac

Please sign in to comment.