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