Since the installer can handle unformatted DASDs, all of them should be viewable and selectable from the storage spoke.
Resolves: rhbz#1064423 --- pyanaconda/ui/lib/disks.py | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/pyanaconda/ui/lib/disks.py b/pyanaconda/ui/lib/disks.py index 486208b..010b9af 100644 --- a/pyanaconda/ui/lib/disks.py +++ b/pyanaconda/ui/lib/disks.py @@ -53,11 +53,24 @@ def getDisks(devicetree, fake=False): if not flags.imageInstall: devices += devicetree._hidden
- disks = [d for d in devices if d.isDisk and - d.mediaPresent and - not d.format.hidden and - not (d.protected and - d.removable)] +# disks = [d for d in devices if d.isDisk and +# d.mediaPresent and +# not d.format.hidden and +# not (d.protected and +# d.removable)] +# + disks = [] + for d in devices: + if d.isDisk and not d.format.hidden and not (d.protected and d.removable): + # unformatted DASDs are detected with a size of 0, but they should + # still show up as valid disks if this function is called, since we + # can still use them; anaconda will know how to handle them, so they + # don't need to be ignored anymore + if d.type == "dasd": + disks.append(d) + elif d.size > 0: + disks.append(d) + else: disks = [] disks.append(FakeDisk("sda", size=300000, free=10000, serial="00001",