summaryrefslogtreecommitdiffstats
path: root/booty
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-12-09 01:23:11 -0600
committerDavid Lehman <dlehman@redhat.com>2009-12-09 15:12:59 -0600
commit414e70f9d87771eeb45875fea69b54d7ce9444af (patch)
treecdad5e9bab52f266015b55ca0f5c50a398180495 /booty
parent429d97802d036413ddfc3f60148a39618e032b6e (diff)
downloadanaconda-414e70f9d87771eeb45875fea69b54d7ce9444af.tar.gz
anaconda-414e70f9d87771eeb45875fea69b54d7ce9444af.tar.xz
anaconda-414e70f9d87771eeb45875fea69b54d7ce9444af.zip
Add support for whole-disk formatting.
Whole-disk formats are recognized but cannot be edited in any way.
Diffstat (limited to 'booty')
-rw-r--r--booty/bootloaderInfo.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py
index 613b489e8..067ffa700 100644
--- a/booty/bootloaderInfo.py
+++ b/booty/bootloaderInfo.py
@@ -474,7 +474,11 @@ class bootloaderInfo(object):
f.write("\n")
def updateDriveList(self, sortedList=[]):
- self._drivelist = map(lambda x: x.name, self.storage.disks)
+ # bootloader is unusual in that we only want to look at disks that
+ # have disklabels -- no partitioned md or unpartitioned disks
+ disks = self.storage.disks
+ partitioned = self.storage.partitioned
+ self._drivelist = [d.name for d in disks if d in partitioned]
self._drivelist.sort(isys.compareDrives)
# If we're given a sort order, make sure the drives listed in it