[PATCH] Filter out devices with no media from custom (#960794)
Brian C. Lane
bcl at redhat.com
Wed Sep 18 18:46:36 UTC 2013
From: "Brian C. Lane" <bcl at redhat.com>
---
pyanaconda/ui/gui/spokes/custom.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 97391b5..2d784d1 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -781,7 +781,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
@property
def unusedDevices(self):
unused_devices = [d for d in self.__storage.unusedDevices
- if d.disks and not d.partitioned and d.isleaf]
+ if d.disks and d.mediaPresent and
+ not d.partitioned and d.isleaf]
# add incomplete VGs and MDs
incomplete = [d for d in self.__storage.devicetree._devices
if not getattr(d, "complete", True)]
--
1.8.3.1
More information about the anaconda-patches
mailing list