[Bug 696959] New: mkinitrd do not use INITRD_MODULES variable in the right way
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.
https://bugzilla.novell.com/show_bug.cgi?id=696959 https://bugzilla.novell.com/show_bug.cgi?id=696959#c Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsrain@novell.com |mmarek@novell.com -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=696959 https://bugzilla.novell.com/show_bug.cgi?id=696959#c1 Olaf Hering <ohering@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Olaf Hering <ohering@suse.com> 2013-07-31 17:22:02 CEST --- I have added this change. Thanks for your patch. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=696959 https://bugzilla.novell.com/show_bug.cgi?id=696959#c2 --- Comment #2 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-07-31 18:00:09 CEST --- This is an autogenerated message for OBS integration: This bug (696959) was mentioned in https://build.opensuse.org/request/show/185266 Factory / mkinitrd -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=696959 https://bugzilla.novell.com/show_bug.cgi?id=696959#c3 --- Comment #3 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-08-04 11:00:08 CEST --- This is an autogenerated message for OBS integration: This bug (696959) was mentioned in https://build.opensuse.org/request/show/185826 Factory / mkinitrd -- 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.
participants (1)
-
bugzilla_noreply@novell.com