[PATCH 1/4] Don't allow unhiding of hidden disks during disk image installs. (#956020)

David Lehman dlehman at redhat.com
Thu May 2 18:00:37 UTC 2013


---
 pyanaconda/ui/lib/disks.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/lib/disks.py b/pyanaconda/ui/lib/disks.py
index ec352f5..8c92be1 100644
--- a/pyanaconda/ui/lib/disks.py
+++ b/pyanaconda/ui/lib/disks.py
@@ -23,6 +23,8 @@
 from blivet.devices import MultipathDevice, iScsiDiskDevice
 from blivet.size import Size
 
+from pyanaconda.flags import flags
+
 __all__ = ["FakeDiskLabel", "FakeDisk", "getDisks", "isLocalDisk", "size_str"]
 
 class FakeDiskLabel(object):
@@ -47,7 +49,10 @@ class FakeDisk(object):
 
 def getDisks(devicetree, fake=False):
     if not fake:
-        devices = devicetree.devices + devicetree._hidden
+        devices = devicetree.devices
+        if not flags.imageInstall:
+            devices += devicetree._hidden
+
         disks = [d for d in devices if d.isDisk and
                                        d.size > 0 and
                                        not d.format.hidden and
-- 
1.8.1.4



More information about the anaconda-patches mailing list