You are not logged in.

#1 2024-06-10 08:11:33

hully
Member
Registered: 2022-11-14
Posts: 164

[SOLVED] Did not understand systemd module loading

I was reading this forum topic

Also the modules-load.d manpage and the Kernel module wiki page.

That page states:

Kernel modules can be explicitly listed in files under /etc/modules-load.d/ for systemd to load them during boot.
[...]
Configuration files simply contain a list of kernel modules names to load, separated by newlines.

How to pass module parameters at load time?

In /etc/modules-load.d/ config files it is not possible.

The correct way seems to be to specify the options in /etc/modprobe.d/ config files.

But the Using files in /etc/modprobe.d/ wiki section talks about "udev", not "systemd-modules-load.service", and the modules-load.d manpage also don't mention /etc/modprobe.d at all.

Last edited by hully (2024-06-12 05:13:24)

Offline

#2 2024-06-10 09:29:40

Nikolai5
Member
From: North West, England, UK
Registered: 2024-01-27
Posts: 275

Re: [SOLVED] Did not understand systemd module loading

udev is a part of systemd, have you tried following the instructions, is it not working, or just a case of you want clarification on how it works?


Ryzen 7 9850X3D | AMD 7800XT | KDE Plasma

Offline

#3 2024-06-10 11:21:35

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: [SOLVED] Did not understand systemd module loading

It says in the Kernel module link that you posted what to do. See #4 Setting module options so you have different ways of loading modules.
Using files means you write a setting in modprobe.d and add modconf to your hooks or naming it in FILES in mkinitcpio.conf. What specifically are you trying to do?

Last edited by d_fajardo (2024-06-10 11:26:29)

Offline

#4 2024-06-10 14:20:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,979

Re: [SOLVED] Did not understand systemd module loading

modules-load.d  and modprobe.d are completely different and unrelated things
For

How to pass module parameters at load time?

only modprobe.d is relevant.
modules-load.d is simply a way to explicitly load modules the system doesn't implicitly load to drive the hardware.

Offline

#5 2024-06-11 12:30:30

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Did not understand systemd module loading

Nikolai5 wrote:

udev is a part of systemd, have you tried following the instructions, is it not working, or just a case of you want clarification on how it works?

I want clarification on how it works.

Does modules-load.d read from modprobe.d also, even though modules-load.d's man page doesn't even mention modprobe.d?

Offline

#6 2024-06-11 12:55:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,979

Re: [SOLVED] Did not understand systemd module loading

modules-load.d will modprobe the listed modules and modprobe will read modprobe.d/*

Offline

#7 2024-06-11 12:57:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,223

Re: [SOLVED] Did not understand systemd module loading

Neither, modules-load.d just enforces to load a module. When a module is being loaded, the directives in modprobe.d get triggered to enrich the loaded module by kernel parameters/options/aliases defined there.

FF5...

Last edited by V1del (2024-06-11 12:57:36)

Offline

#8 2024-06-12 05:12:53

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Did not understand systemd module loading

seth wrote:

modules-load.d will modprobe the listed modules and modprobe will read modprobe.d/*

ok thanks

Offline

Board footer

Powered by FluxBB