diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-01-04 16:40:01 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-01-04 16:40:01 +0000 |
commit | cec1c36b7cbb4ed9168694ee30c9296450bbb9ae (patch) | |
tree | 5e930d78b4942e5daeeb549e66746c9a941833e2 /loader2/modules.c | |
parent | b8e28baa057c474f7b33dd823c7370ad39527fc8 (diff) | |
download | anaconda-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.c | 6 |
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; } |