[master/rhel7-branch] Show hidden disk images (#1034996)
Vratislav Podzimek
vpodzime at redhat.com
Mon Jan 27 09:54:59 UTC 2014
On Fri, 2014-01-24 at 15:55 -0800, Brian C. Lane wrote:
> When doing image installs we need to be able to un-hide the image.
> Otherwise it goes away and you have to restart anaconda.
>
> Resolves: rhbz#1034996
> ---
> pyanaconda/ui/lib/disks.py | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/pyanaconda/ui/lib/disks.py b/pyanaconda/ui/lib/disks.py
> index ddeaa41..faecd8e 100644
> --- a/pyanaconda/ui/lib/disks.py
> +++ b/pyanaconda/ui/lib/disks.py
> @@ -49,7 +49,11 @@ class FakeDisk(object):
> def getDisks(devicetree, fake=False):
> if not fake:
> devices = devicetree.devices
> - if not flags.imageInstall:
> + if flags.imageInstall:
> + hidden_images = [d for d in devicetree._hidden \
> + if d.name in devicetree.diskImages]
This could be a generator expression instead of creating a temporary
list. Otherwise ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list