summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-01-19 23:01:10 +0000
committerMike Fulbright <msf@redhat.com>2001-01-19 23:01:10 +0000
commit2faf67b7edc2929f5a2e1eb9f74f2284f5606361 (patch)
treeef0f69a145fef921bc01b423801fa0a7de5c953e /todo.py
parent6c90d3890604dfa8d3abf44513e8dcabe60433cc (diff)
downloadanaconda-2faf67b7edc2929f5a2e1eb9f74f2284f5606361.tar.gz
anaconda-2faf67b7edc2929f5a2e1eb9f74f2284f5606361.tar.xz
anaconda-2faf67b7edc2929f5a2e1eb9f74f2284f5606361.zip
fix for bug 17285
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/todo.py b/todo.py
index 140bbaca0..5e54a9451 100644
--- a/todo.py
+++ b/todo.py
@@ -472,15 +472,16 @@ class ToDo:
pass
elif iutil.getArch() == "i386" or iutil.getArch() == "ia64":
# Look for the first IDE floppy device
- drives = isys.floppyDriveDict().keys()
+ drives = isys.floppyDriveDict()
if not drives:
log("no IDE floppy devices found")
return 0
- # We don't need to be picky about sort order as we toss
- # items that aren't hd* anyway
- drives.sort()
- floppyDrive = drives[0]
+ flopyyDrive = drives.keys()[0]
+ # need to go through and find if there is an LS-120
+ for dev in drives.keys():
+ if re.compile(".*[Ll][Ss]-120.*").search(drives[dev]):
+ floppyDrive = dev
# No IDE floppy's -- we're fine w/ /dev/fd0
if not floppyDrive: return