diff options
author | Matt Wilson <msw@redhat.com> | 2000-01-10 22:04:33 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-01-10 22:04:33 +0000 |
commit | 5f82ea6b35342d4ba68ed6ef9bf57ac66b6f741c (patch) | |
tree | 77ea4530e197fba64ea5cff88ac7c7662ca8de85 /todo.py | |
parent | e8a92b7f8b0f1d601c146add387bd3b0a944f46d (diff) | |
download | anaconda-5f82ea6b35342d4ba68ed6ef9bf57ac66b6f741c.tar.gz anaconda-5f82ea6b35342d4ba68ed6ef9bf57ac66b6f741c.tar.xz anaconda-5f82ea6b35342d4ba68ed6ef9bf57ac66b6f741c.zip |
fixed up jaz/zip stuff
Diffstat (limited to 'todo.py')
-rw-r--r-- | todo.py | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -280,7 +280,7 @@ class ToDo: self.desktop = Desktop () self.ddruidReadOnly = 0 self.badBlockCheck = 0 - self.bootdisk = 0 + self.bootdisk = 1 self.liloImages = {} # liloDevice, liloLinear, liloAppend are initialized form the # default install class @@ -1024,7 +1024,6 @@ class ToDo: list = isys.cdromList() count = 0 for device in list: - (device, descript) = device cdname = "cdrom" if (count): cdname = "%s%d" % (cdname, count) @@ -1042,15 +1041,23 @@ class ToDo: self.fstab.addMount(cdname, mntpoint, "iso9660") def createRemovable(self, rType): - self.log ("making %s drive links (if any)", % rType) - list = isys.floppyDriveList() - list = list + isys.hardDriveList() + devDict = isys.floppyDriveDict() + + d = isys.hardDriveDict() + for item in d.keys(): + devDict[item] = d[item] + + list = devDict.keys() + list.sort() + count = 0 for device in list: - (device, descript) = device - if string.find(string.upper(descript), - string.upper(rType)) != -1 or + descript = devDict[device] + if string.find(string.upper(descript), string.upper(rType)) == -1: + continue + self.log ("found %s disk, creating link", rType) + try: os.stat(self.instPath + "/dev/%s" % rType) self.log ("link exists, removing") |