2 RCSID='$Revision$ $Date:: $'
6 # it should be safe to remove scsi_mod from here, but I'm not sure...
7 PRESCSIMODS="-scsi_mod unknown -sd_mod"
10 ide_only_root=${ide_only_root:-no}
12 # allow forcing loading IDE modules, likely from sysconfig/geninitrd
15 # return true if node is scsi device
16 # @param string $node device node to be examined
20 if [ ! -e "$node" ]; then
21 warn "is_scsi(): node $node doesn't exist!"
25 # TODO: more sophisticated check, not just pathname check
26 if is_yes "$(echo "$node" | awk '/^\/dev\/(sd|scsi)/ { print "yes"; }')"; then
33 # find modules for $devpath
34 # @param $devpath device to be examined
40 for n in $PRESCSIMODS; do
41 if [ "X$n" = "Xunknown" ]; then
42 debug "Finding SCSI modules using scsi_hostadapter"
43 local mod scsimodules=$(modprobe_conf | awk '/scsi_hostadapter/ && ! /^[\t ]*#/ { print $3; }')
44 for mod in $scsimodules; do
45 # for now allow scsi modules to come from anywhere. There are some
46 # RAID controllers with drivers in block
53 find_module "-scsi_wait_scan"
57 # generate initrd fragment for ide device init