diff options
author | Chris Lumens <clumens@redhat.com> | 2009-02-27 14:40:00 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-03-04 15:37:05 -0500 |
commit | b51b0ecf27ac076103484d0c8d00ba86341ac614 (patch) | |
tree | aa6028ac69f041d523b47774995b7ad5154817ab /booty | |
parent | 1e73575ca9dbc1a3a02d977956a20413dd8ec0bb (diff) | |
download | anaconda-b51b0ecf27ac076103484d0c8d00ba86341ac614.tar.gz anaconda-b51b0ecf27ac076103484d0c8d00ba86341ac614.tar.xz anaconda-b51b0ecf27ac076103484d0c8d00ba86341ac614.zip |
Stop using isys.hardDriveDict.
Diffstat (limited to 'booty')
-rw-r--r-- | booty/bootloaderInfo.py | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py index c149a5461..811e8fe69 100644 --- a/booty/bootloaderInfo.py +++ b/booty/bootloaderInfo.py @@ -472,20 +472,9 @@ class bootloaderInfo: f.write(" " + arg) f.write("\n") - def createDriveList(self): - # create a drive list that we can use for drive mappings - # XXX has anaconda internals knowledge - import isys - drives = isys.hardDriveDict().keys() - drives.sort(isys.compareDrives) - - # now filter out all of the drives without media present - drives = filter(lambda x: isys.mediaPresent(x), drives) - - return drives - def updateDriveList(self, sortedList=[]): - self._drivelist = self.createDriveList() + self._drivelist = map(lambda x: x.name, filter(lambda x: isys.mediaPresent(x.name), self.storage.disks)) + self._drivelist.sort(isys.compareDrives) # If we're given a sort order, make sure the drives listed in it # are put at the head of the drivelist in that order. All other |