[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: PATCH [1/2]: storage-branch: Do not create PV's in empty space of disks not selected for install



This one should have been 2/2 of course, duh.

Hans de Goede wrote:
---
 storage/partitioning.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 17a1081..49b3659 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -58,7 +58,7 @@ def doAutoPartition(anaconda):
     # get a list of disks that have at least one free space region of at
     # least 100MB
     disks = []
-    for disk in anaconda.id.storage.disks:
+ for disk in [d for d in anaconda.id.storage.disks if d.name in anaconda.id.storage.clearPartDisks]:
         partedDisk = disk.partedDisk
         part = disk.partedDisk.getFirstPartition()
         while part:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]