summaryrefslogtreecommitdiffstats
path: root/loader2/modules.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-01-04 16:40:01 +0000
committerJeremy Katz <katzj@redhat.com>2007-01-04 16:40:01 +0000
commitcec1c36b7cbb4ed9168694ee30c9296450bbb9ae (patch)
tree5e930d78b4942e5daeeb549e66746c9a941833e2 /loader2/modules.c
parentb8e28baa057c474f7b33dd823c7370ad39527fc8 (diff)
downloadanaconda-cec1c36b7cbb4ed9168694ee30c9296450bbb9ae.tar.gz
anaconda-cec1c36b7cbb4ed9168694ee30c9296450bbb9ae.tar.xz
anaconda-cec1c36b7cbb4ed9168694ee30c9296450bbb9ae.zip
2007-01-04 Jeremy Katz <katzj@redhat.com>
* loader2/modules.c (scsiDiskCount): Include cdroms in the count
Diffstat (limited to 'loader2/modules.c')
-rw-r--r--loader2/modules.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/loader2/modules.c b/loader2/modules.c
index c63898e14..697cc5c4e 100644
--- a/loader2/modules.c
+++ b/loader2/modules.c
@@ -110,6 +110,12 @@ static int scsiDiskCount(void) {
for (; devices[i]; i++);
free(devices);
}
+ /* have to probe for usb cdrom too */
+ devices = probeDevices(CLASS_CDROM, BUS_SCSI, PROBE_LOADED);
+ if (devices) {
+ for (; devices[i]; i++);
+ free(devices);
+ }
return i;
}