SVN: geninitrd/trunk/geninitrd
glen
glen at pld-linux.org
Mon Nov 10 02:25:31 CET 2008
Author: glen
Date: Mon Nov 10 02:25:31 2008
New Revision: 9978
Modified:
geninitrd/trunk/geninitrd
Log:
- find_depmod: if module is not present, look into aliases (can be aliases from modules themselves or modprobe.conf):
$ modprobe -c --set-version 2.6.25.18-1 | awk -vm=aes '$1 == "alias" && $2 == m { print $3 }'
aes_generic, aes_i586, padlock_aes
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Mon Nov 10 02:25:31 2008
@@ -298,6 +298,16 @@
modfile=$(modinfo -k $kernel -n $module)
fi
if [ ! -f "$modfile" ]; then
+ # module not found. try aliases!
+ local alias aliases=$(modprobe_conf | awk -vm="$module" '$1 == "alias" && $2 == m { print $3 }')
+ if [ "$aliases" ]; then
+ for alias in $aliases; do
+ debug "Try $alias alias for $module"
+ find_depmod "$alias"
+ done
+ return
+ fi
+
if [ "$mode" != "silent" ]; then
warn "$module: module not found for $kernel kernel"
fi
More information about the pld-cvs-commit
mailing list