|
From: Serge L. <sma...@us...> - 2008-09-09 21:03:43
|
Update of /cvsroot/devil-linux/build/config/etc/initrd In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv13247/config/etc/initrd Modified Files: linuxrc Log Message: - added hardware initialization from sysfs - additional check for modules dependencies Index: linuxrc =================================================================== RCS file: /cvsroot/devil-linux/build/config/etc/initrd/linuxrc,v retrieving revision 1.101 retrieving revision 1.102 diff -u -d -r1.101 -r1.102 --- linuxrc 26 Jun 2008 17:20:15 -0000 1.101 +++ linuxrc 9 Sep 2008 21:03:35 -0000 1.102 @@ -221,6 +221,15 @@ # we load the module to be sure we will be able to mount iso image modprobe loop > /dev/null 2>&1 +# we load the modules based on information from sysfs +for mod in $(find /sys/devices -name modalias -exec cat {} \; | sed 's/sv.*sd.*bc.*sc.*i*.//' ); +do + for mod1 in $(grep $mod /lib/modules/*/modules.alias | awk '{ print $3 }') + do + modprobe $mod1 > /dev/null 2>&1 + done +done + # it's a workaround because # mdev doesn't load necessary modules :-( if [ -f "/tmp/PROBE_ALL_MODULES" ] ; then |