http://qa.mandrakesoft.com/show_bug.cgi?id=5878

           Product: mkinitrd
         Component: mkinitrd
           Summary: [PATCH] Options specified in modules.conf are not used
           Product: mkinitrd
           Version: 3.4.43-9mdk
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: mkinitrd
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

-- 
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.

Reply via email to