https://bugzilla.novell.com/show_bug.cgi?id=696959 https://bugzilla.novell.com/show_bug.cgi?id=696959#c0 Summary: mkinitrd do not use INITRD_MODULES variable in the right way Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: All OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader AssignedTo: jsrain@novell.com ReportedBy: Hauptverwaltung.ISBD@debeka.de QAContact: jsrain@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Adding kernel modules to the variable INTRD_MODULES in the file /etc/sysconfig/kernel works fine, but if you need to remove a module from the initrd like that: INITRD_MODULES="ext4 -radeon" It would not work and end up in a failure. I located the the wrong (I think so ;)) part source code in the file /lib/mkinitrd/scripts/setup-modules.sh The script put some variables together and then check the old ones. With little changes the script would work as assumed. --- setup-modules.sh.old 2011-05-30 13:23:17.376326239 +0200 +++ setup-modules.sh 2011-05-30 13:08:48.965243910 +0200 @@ -312,10 +312,6 @@ # parsing of '# SUSE INITRD' lines load_additional_dependencies -resolved_modules="$(resolve_modules $kernel_version $modules)" -if [ $? -ne 0 ] ; then - return 1 -fi # cut out all modules which have a minus preceding them modules=$( @@ -331,6 +327,11 @@ done ) +resolved_modules="$(resolve_modules $kernel_version $modules)" +if [ $? -ne 0 ] ; then + return 1 +fi + if [ "$resolved_modules" ] ; then echo -ne "Kernel Modules:\t" for mod in $resolved_modules ; do Reproducible: Always Steps to Reproduce: 1. Put "-some_module" into the variable INITRD_MODULDES in /etc/sysconfig/kernel 2. mkinitrd Actual Results: Failure at initrdbuild Expected Results: initrd without the dismissed module -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.