[readonly/geninitrd: 474/1068] - fix finding scsi modules
draenog
draenog at pld-linux.org
Sat Nov 2 19:52:14 CET 2013
commit 60899da0a9b02c75ad31d7f02c462b1ec1b26bc7
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Thu Oct 25 15:07:18 2007 +0000
- fix finding scsi modules
svn-id: @8873
geninitrd | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 76d6811..7b33ffb 100755
--- a/geninitrd
+++ b/geninitrd
@@ -438,14 +438,12 @@ find_modules_scsi() {
local n
for n in $PRESCSIMODS; do
if [ "X$n" = "Xunknown" ]; then
- if [ -f "$modulefile" ]; then
- local scsimodules=$(modprobe_conf | awk '/scsi_hostadapter/ && ! /^[\t ]*#/ { print $3; }')
- for n in $scsimodules; do
- # for now allow scsi modules to come from anywhere. There are some
- # RAID controllers with drivers in block
- findmodule "$n"
- done
- fi
+ local mod scsimodules=$(modprobe_conf | awk '/scsi_hostadapter/ && ! /^[\t ]*#/ { print $3; }')
+ for mod in $scsimodules; do
+ # for now allow scsi modules to come from anywhere. There are some
+ # RAID controllers with drivers in block
+ findmodule "$mod"
+ done
else
findmodule "$n"
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/147754ca159d40ca5eb541074dc043d8cbd92090
More information about the pld-cvs-commit
mailing list