Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93883 - genkernel does not start dmraid when using --no-initrdmodules
Summary: genkernel does not start dmraid when using --no-initrdmodules
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-24 22:13 UTC by Matthias Schwarzott
Modified: 2005-07-12 12:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Schwarzott gentoo-dev 2005-05-24 22:13:56 UTC
I tried to create an initrd with this command:
genkernel --dmraid --udev --no-initrdmodules initrd

The created initrd will not boot from dmraid-Arrays.


A little digging leads to this:

The /linuxrc of the initrd contains this code which is executed when loading modules:

if [ -d '/lib/modules' ]
then
        echo -e "${GOOD}>>${NORMAL}${BOLD} Loading modules...${NORMAL}"
        # Load appropriate kernel modules
        for modules in $MY_HWOPTS
        do
                modules_scan $modules
                eval DO_`echo $modules | sed 's/-//'`=1
        done
else
        echo -e "${GREEN}>>${NORMAL}${BOLD} Skipping module load; no modules in
the initrd!${NORMAL}"
fi

That means when not using initrd to load modules the DO_* variables do not get set and without DO_dmraid the raid will not be started.


This loop should consist of two loops: A uncoditional one to set the DO_* variables and a conditional one to load the modules.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2005-06-21 10:36:22 UTC
Please grab 3.2.0_pre9 and try:

diff -u -r1.52 linuxrc
--- linuxrc     15 Jun 2005 19:05:31 -0000      1.52
+++ linuxrc     21 Jun 2005 17:31:22 -0000
@@ -144,6 +144,10 @@
       eval DO_`echo $modules | sed 's/-//'`=1
     done
 else
+    for modules in $MY_HWOPTS
+    do
+      eval DO_`echo $modules | sed 's/-//'`=1
+    done
     good_msg 'Skipping module load; no modules in the initrd!'
 fi
Comment 2 Eric Edgar (RETIRED) gentoo-dev 2005-07-12 11:58:12 UTC
Fix is in genkernel-3.2.1 please reopen if this doesnt work properly.
Comment 3 Eric Edgar (RETIRED) gentoo-dev 2005-07-12 12:06:43 UTC
closing this bug as genkernel-3.2.2 is out.  Reopen if its not fixed properly.