[PATCH 3/7] Do not include disks that have 0 size (#903131, #904977).

Martin Sivak msivak at redhat.com
Thu Jan 31 13:55:57 UTC 2013


Ack.

----- Original Message -----
> ---
>  pyanaconda/ui/gui/spokes/storage.py | 1 +
>  pyanaconda/ui/tui/spokes/storage.py | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/pyanaconda/ui/gui/spokes/storage.py
> b/pyanaconda/ui/gui/spokes/storage.py
> index 58ebf85..0155c83 100644
> --- a/pyanaconda/ui/gui/spokes/storage.py
> +++ b/pyanaconda/ui/gui/spokes/storage.py
> @@ -96,6 +96,7 @@ def getDisks(devicetree, fake=False):
>      if not fake:
>          devices = devicetree.devices + devicetree._hidden
>          disks = [d for d in devices if d.isDisk and
> +                                       d.size > 0 and
>                                         not d.format.hidden and
>                                         not (d.protected and
>                                              d.removable)]
> diff --git a/pyanaconda/ui/tui/spokes/storage.py
> b/pyanaconda/ui/tui/spokes/storage.py
> index 292ffc2..2cfff27 100644
> --- a/pyanaconda/ui/tui/spokes/storage.py
> +++ b/pyanaconda/ui/tui/spokes/storage.py
> @@ -74,6 +74,7 @@ class FakeDisk(object):
>  def getDisks(devicetree, fake=False):
>      if not fake:
>          disks = [d for d in devicetree.devices if d.isDisk and
> +                                                  d.size > 0 and
>                                                    not
>                                                    d.format.hidden
>                                                    and
>                                                    not (d.protected
>                                                    and
>                                                         d.removable)]
> --
> 1.7.11.2
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
> 


More information about the anaconda-patches mailing list