http://qa.mandrakesoft.com/show_bug.cgi?id=5878
------- Additional Comments From [EMAIL PROTECTED] 2003-21-09 13:20 ------- Created an attachment (id=875) --> (http://qa.mandrakesoft.com/attachment.cgi?id=875&action=view) Fix mkinitrd not using the options specified in modules.conf -- Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ------- Reminder: ------- assigned_to: [EMAIL PROTECTED] status: UNCONFIRMED creation_date: description: Hello, The options for a particular module are not included in the ramdisk, and they should! To see it, include a module with options specified in /etc/modules.conf (using --with) and check the linuxrc script created (using -v): nothing after the 'insmod' command. This is because mkinitrd is looking for "name-of-the-module.o" in modules.conf instead of "name-of-the-module". The patch included should do the trick. Eric --- /sbin/mkinitrd.bak 2003-09-21 12:12:38.000000000 +0200 +++ /sbin/mkinitrd 2003-09-21 12:12:44.000000000 +0200 @@ -629,8 +629,9 @@ for MODULE in $MODULES; do text="" module=`echo $MODULE | sed "s|.*/||"` - - options=$(sed -n -e "s/^options[ ][ ]*$module[ ][ ]*//p" $modulefile 2>/dev/null) + shortmodule=`basename $module .o` + + options=$(sed -n -e "s/^options[ ][ ]*$shortmodule[ ][ ]*//p" $modulefile 2>/dev/null) if [ -n "$verbose" ]; then if [ -n "$options" ]; then
