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