[Bug 775800] New: BrokenModules linuxrc parameter does NOT work on openSUSE 12.2 installation process
https://bugzilla.novell.com/show_bug.cgi?id=775800 https://bugzilla.novell.com/show_bug.cgi?id=775800#c0 Summary: BrokenModules linuxrc parameter does NOT work on openSUSE 12.2 installation process Classification: openSUSE Product: openSUSE 12.2 Version: RC 2 Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Major Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jlee@suse.com QAContact: jsrain@suse.com Found By: --- Blocker: --- BrokenModules linuxrc parameter does NOT work on openSUSE 12.2 installation process When tracing bnc#773669, found the BrokenModules parameter can't stop system to load pata_pdc2027x driver. I and David tested other kernel modules like r8169 driver, also can reproduce this issue. We also tried openSUSE 12.1 installation DVD, can NOT reproduce issue. openSUSE 12.2 : Linuxrc v4.0.6 FAIL openSUSE 12.1 : Linuxrc v3.5.15 OK Reproducible: Always Steps to Reproduce: 1. boot into the 12.2 installation system using 'BrokenModules=r8169' or 'BrokenModules=pata_pdc2027x' 2. switch to console through Ctrl+Alt+F1 3. lsmod to check r8169 or pata_pdc2027x, found it loaded. 4. check the /etc/modprobe.d/blacklist file, found there have blacklist command in this file, looks good. But the kernel module still loaded by system. Expected Results: The kernel modules behind BrokenModules parameter can NOT be load. -- 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=775800
https://bugzilla.novell.com/show_bug.cgi?id=775800#c
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=775800
https://bugzilla.novell.com/show_bug.cgi?id=775800#c1
--- Comment #1 from Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=775800
https://bugzilla.novell.com/show_bug.cgi?id=775800#c2
--- Comment #2 from Joey Lee
Wild guess: all files in /etc/modprobe.d/ on my (running) system are named *.conf - maybe files not named *.conf are ignored?
It's a good hint lead me look at the source code in module-init-tools-3.15/modprobe.c in openSUSE:12.2. If I didn't miss anything, currently modprobe just issue a WARN message for the file extension does not ".conf" or ".alias": module-init-tools-3.15/modprobe.c::parse_config_scan len = strlen(i->d_name); if (len < 6 || (strcmp(&i->d_name[len-5], ".conf") != 0 && strcmp(&i->d_name[len-6], ".alias") != 0)) warn("All config files need .conf: %s/%s, " "it will be ignored in a future release.\n", filename, i->d_name); But, those kind of files didn't ignored at this version. Does anyone know how to enable the modprobe messages in installation system? I try to cat /var/log/messages but it's empty. -- 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=775800
https://bugzilla.novell.com/show_bug.cgi?id=775800#c3
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=775800
https://bugzilla.novell.com/show_bug.cgi?id=775800#c4
Joey Lee
https://bugzilla.novell.com/show_bug.cgi?id=775800
https://bugzilla.novell.com/show_bug.cgi?id=775800#c5
--- Comment #5 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=775800
https://bugzilla.novell.com/show_bug.cgi?id=775800#c6
--- Comment #6 from Joey Lee
Take a bit look into libkmod. My comment#3 is incorrect as I found that in libkmod it would load and parse config files in /etc/modprobe.d/
However it has to be with .conf or .alias suffix, otherwise it would be filtered out (Christian has been pointed it in comment#2 :)).
libkmod/libkmod-config.c: static bool conf_files_filter_out(struct kmod_ctx *ctx, DIR *d, const char *path, const char *fn) { <.. snip ..> if (len < 6 || (!streq(&fn[len - 5], ".conf") && !streq(&fn[len - 6], ".alias"))) return true;
When I renamed blaklist and noload to blacklist.conf and noload.conf respectively, the udevadm trigger no longer loads the blacklisted module. :-)
I think linuxrc has to patch to create blacklist with correct *.conf suffix.
Yes, patch to linuxrc for rename 'blacklist' to 'blacklist.conf' is sensible. -- 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=775800
https://bugzilla.novell.com/show_bug.cgi?id=775800#c7
Joey Lee
https://bugzilla.novell.com/show_bug.cgi?id=775800
https://bugzilla.novell.com/show_bug.cgi?id=775800#c
Joey Lee
https://bugzilla.novell.com/show_bug.cgi?id=775800
https://bugzilla.novell.com/show_bug.cgi?id=775800#c8
Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=775800
https://bugzilla.novell.com/show_bug.cgi?id=775800#c9
Steffen Winterfeldt
participants (1)
-
bugzilla_noreply@novell.com