Bug 732041

Summary: systemd: /etc/sysconfig/kernel: MODULES_LOADED_ON_BOOT="snd-mixer-oss" --> IGNORED
Product: [openSUSE] openSUSE 12.1 Reporter: robert spitzenpfeil <rs.opensuse>
Component: BasesystemAssignee: Frederic Crozat <fcrozat>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: crrodriguez, cus, suse-beta, th260
Version: Final   
Target Milestone: ---   
Hardware: x86   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description robert spitzenpfeil 2011-11-22 13:59:19 UTC
User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0

I need snd-mixer-oss loaded to make 'tvtime' happy.

So I added "snd-mixer-oss" to MODULES_LOAD_ON_BOOT of '/etc/sysconfig/kernel', made sure it is activated (yast runlevel), but using systemd it is not executed at all. Gone back to sysvinit-init and it works.

Reproducible: Always

Steps to Reproduce:
1. add module to MODULES_LOAD_ON_BOOT
2. reboot
3.
Actual Results:  
module not loaded on boot

Expected Results:  
module loaded on boot
Comment 1 Tom Harms 2011-11-24 20:50:27 UTC
I have the same issue, I want to load the lp module, which is needed to print via LPT1.
Comment 2 Frederic Crozat 2011-11-29 13:18:09 UTC
this bug is supposed to be fixed since Oct 12 (bnc#721662).

does running manually as root : /lib/systemd/systemd-modules-load 
loads the modules ?
Comment 3 Tom Harms 2011-11-29 18:30:50 UTC
(In reply to comment #2)
> this bug is supposed to be fixed since Oct 12 (bnc#721662).
> 
> does running manually as root : /lib/systemd/systemd-modules-load 
> loads the modules ?

No, it does NOT.

Only modprobe lp works.

CU
Tom
Comment 4 Frederic Crozat 2011-11-30 08:55:35 UTC
could you attach /etc/sysconfig/kernel and run
strace -o /tmp/modules-trace.log -f -F /lib/systemd/systemd-module-load

and attach /tmp/modules-trace.log
Comment 5 Tom Harms 2011-11-30 19:54:13 UTC
I'm sorry, I have to correct my Comment 3.

running /lib/systemd/systemd-modules-load as root does load the lp module. I suppose I deleted "lp" as parameter for MODULES_LOADED_ON_BOOT in /etc/sysconf/kernel.

Thanx
Tom
Comment 6 Frederic Crozat 2011-12-01 12:24:58 UTC
so, could you retest after rebooting and not starting  /lib/systemd/systemd-modules-load manually ?
Comment 7 Tom Harms 2011-12-01 16:41:50 UTC
(In reply to comment #6)
> so, could you retest after rebooting and not starting 
> /lib/systemd/systemd-modules-load manually ?

Ok, starting with systemd and /etc/sysconf/kernel containing MODULES_LOADED_ON_BOOT="lp".

lsmod shows no lp  -->  parport                46528  2 ppdev,parport_pc

after performing: /lib/systemd/systemd-modules-load

lsmod shows: parport                46528  3 lp,ppdev,parport_pc

Thanx for your efforts
Tom
Comment 8 Frederic Crozat 2011-12-01 17:09:12 UTC
could you give systemctl status systemd-modules-load.service output ?

I think I know why it doesn't work, I just need a confirmation with your output.
Comment 9 Tom Harms 2011-12-02 15:22:35 UTC
Ok, here comes the output:

systemd-modules-load.service - Load Kernel Modules
	  Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static)
	  Active: inactive (dead)
	          start condition failed at Fri, 02 Dec 2011 16:06:44 +0100; 9min ago
	  CGroup: name=systemd:/system/systemd-modules-load.service

Thanx
Tom
Comment 10 Frederic Crozat 2011-12-02 15:36:43 UTC
ok, as expected, there is a precondition which is not set when only /etc/sysconfig/kernel is set, so /lib/systemd/system/systemd-modules-load.service is not started.

I'll fix that.
Comment 11 Frederic Crozat 2011-12-09 14:42:25 UTC
sr 96122 pushed to openSUSE:12.1:Update:Test
requesting maintenance update for 12.1
Comment 12 Bernhard Wiedemann 2011-12-09 15:00:57 UTC
This is an autogenerated message for OBS integration:
This bug (732041) was mentioned in
https://build.opensuse.org/request/show/96122 12.1 / systemd
https://build.opensuse.org/request/show/96125 Factory / systemd
Comment 13 Bernhard Wiedemann 2011-12-09 18:00:50 UTC
This is an autogenerated message for OBS integration:
This bug (732041) was mentioned in
https://build.opensuse.org/request/show/96193 Factory / systemd
Comment 14 Bernhard Wiedemann 2011-12-12 17:01:04 UTC
This is an autogenerated message for OBS integration:
This bug (732041) was mentioned in
https://build.opensuse.org/request/show/96377 12.1 / systemd
Comment 16 Cristian Rodríguez 2011-12-17 14:29:15 UTC
fixed
Comment 17 Frederic Crozat 2012-01-04 09:26:58 UTC
Maintenance update has been released for 12.1