You are not logged in.

#1 2012-11-25 08:55:51

bryanpaddock
Member
From: Cape Town, SA
Registered: 2012-07-03
Posts: 12

[solved] Systemd switch - kernel module loading not working

Hey guys

Switched to systemd a while ago, finally removed initscripts today.

Only problem I'm having is my wifi module is not loading by itself.

bryan@pluto /etc/modules-load.d $ ls -l
total 8
-rw-r--r-- 1 root root 35 Sep  9 21:07 cpufreq.conf
-rw-r--r-- 1 root root 40 Nov 23 18:57 ipw2200.conf
bryan@pluto /etc/modules-load.d $ cat ipw2200.conf 
# Load intel 2200bg wifi driver
ipw2200
bryan@pluto /etc/modules-load.d $ 

Every time I log in I need to run

bryan@pluto / $ sudo modprobe ipw2200

and it works.

Any ideas?

Last edited by bryanpaddock (2012-11-27 08:15:09)

Offline

#2 2012-11-25 09:28:01

Pajaro
Member
Registered: 2004-04-21
Posts: 875

Re: [solved] Systemd switch - kernel module loading not working

this may give you clues:

cat /usr/lib/systemd/system/sysinit.target.wants/systemd-modules-load.service

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Load Kernel Modules
Documentation=man:systemd-modules-load.service(8) man:modules-load.d(5)
DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-readahead-collect.service systemd-readahead-replay.service
Before=sysinit.target shutdown.target
ConditionCapability=CAP_SYS_MODULE
ConditionDirectoryNotEmpty=|/lib/modules-load.d
ConditionDirectoryNotEmpty=|/usr/lib/modules-load.d
ConditionDirectoryNotEmpty=|/usr/local/lib/modules-load.d
ConditionDirectoryNotEmpty=|/etc/modules-load.d
ConditionDirectoryNotEmpty=|/run/modules-load.d
ConditionKernelCommandLine=|modules-load
ConditionKernelCommandLine=|rd.modules-load

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/systemd/systemd-modules-load

Offline

#3 2012-11-25 09:46:00

bryanpaddock
Member
From: Cape Town, SA
Registered: 2012-07-03
Posts: 12

Re: [solved] Systemd switch - kernel module loading not working

Hmmm...

I'm still baffled.

It meets the ConditionDirectoryNotEmpty so it should run?

Offline

#4 2012-11-25 13:21:24

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,277

Re: [solved] Systemd switch - kernel module loading not working

Try adding a "newline" into your ipw2200.conf after the driver name. Something like

ipw2200
#end of conf-file

Sometimes such is needed so that files get parsed correctly.

Generally that module should autoload though. It is not doing so I guess?
Post the PCI ID of the card, if above does not help.

Offline

#5 2012-11-25 20:20:39

runny6play
Member
Registered: 2012-02-18
Posts: 85

Re: [solved] Systemd switch - kernel module loading not working

the only advice I can give you if anything else doesn't work is to put the module into modprobe.conf file and see what happens.

Offline

#6 2012-11-27 08:14:41

bryanpaddock
Member
From: Cape Town, SA
Registered: 2012-07-03
Posts: 12

Re: [solved] Systemd switch - kernel module loading not working

Sigh

Can be an idiot sometimes. I had blacklisted it from old netcfg config before systemd.

Thanks guys

Offline

Board footer

Powered by FluxBB