[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 12/15] Use isys.removableDriveDict() for exceptionDisks.
- From: Bill Nottingham <notting redhat com>
- To: anaconda-devel-list redhat com
- Cc: Bill Nottingham <notting redhat com>
- Subject: [PATCH 12/15] Use isys.removableDriveDict() for exceptionDisks.
- Date: Wed, 5 Dec 2007 18:24:09 -0500
---
partedUtils.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/partedUtils.py b/partedUtils.py
index 9e47788..b5bec5a 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -1342,10 +1342,8 @@ class DiskSet:
self.refreshDevices()
isys.flushDriveDict()
- drives = isys.floppyDriveDict().items()
-
- for d in isys.hardDriveDict().items():
- if isys.driveUsesModule(d[0], ["usb-storage", "ub", "sbp2", "firewire-sbp2"]):
+ drives = []
+ for d in isys.removableDriveDict().items():
func = lambda p: not p.get_flag(parted.PARTITION_RAID) and not p.get_flag(parted.PARTITION_LVM) and p.fs_type.name in ["ext3", "ext2", "vfat"]
disk = self.disks[d[0]]
--
1.5.3.4
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]