[PATCH] Filter out devices with no media from custom (#960794)
David Lehman
dlehman at redhat.com
Wed Sep 18 19:04:07 UTC 2013
ACK
On Wed, 2013-09-18 at 11:46 -0700, Brian C. Lane wrote:
> 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)]
More information about the anaconda-patches
mailing list