[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] When creating free space, handle cases other than clearpart --drives=
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] When creating free space, handle cases other than clearpart --drives=
- Date: Mon, 16 Mar 2009 16:11:25 -0400
---
storage/partitioning.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/storage/partitioning.py b/storage/partitioning.py
index f4c40f2..0fdd6b9 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -44,7 +44,10 @@ def _createFreeSpacePartitions(anaconda):
# get a list of disks that have at least one free space region of at
# least 100MB
disks = []
- for disk in [d for d in anaconda.id.storage.disks if d.name in anaconda.id.storage.clearPartDisks]:
+ for disk in anaconda.id.storage.disks:
+ if anaconda.id.storage.clearPartDisks and disk not in anaconda.id.storage.clearPartDisks:
+ continue
+
partedDisk = disk.partedDisk
part = disk.partedDisk.getFirstPartition()
while part:
@@ -161,7 +164,7 @@ def doAutoPartition(anaconda):
disks = []
devs = []
- if anaconda.id.storage.doAutoPart or anaconda.isKickstart:
+ if anaconda.id.storage.doAutoPart and not anaconda.isKickstart:
# kickstart uses clearPartitions even without autopart
clearPartitions(anaconda.id.storage)
--
1.6.1.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]