Skip to content

Load modules from /etc/modules#131

Open
fhunleth wants to merge 1 commit into
mainfrom
load-etc-modules
Open

Load modules from /etc/modules#131
fhunleth wants to merge 1 commit into
mainfrom
load-etc-modules

Conversation

@fhunleth

Copy link
Copy Markdown
Member

Intended to be merged after #130.

Auto-load modules listed in the /etc/modules file. This makes it
possible for systems to specify (and users to override) the load of
kernel modules that may not be detectable via uevent messages.

Previously these modules were compiled into the kernel, but this does
not support cases where they could be optional. For example, it would
be nice to have a few USB gadget driver options without hardcoding them
into the kernel. This lets systems be made where the default case loads
a Ethernet/serial gadget driver (for example), but that can be disabled
by overriding /etc/modules with a different set of drivers.

Auto-load modules listed in the `/etc/modules` file. This makes it
possible for systems to specify (and users to override) the load of
kernel modules that may not be detectable via `uevent` messages.

Previously these modules were compiled into the kernel, but this does
not support cases where they could be optional. For example, it would
be nice to have a few USB gadget driver options without hardcoding them
into the kernel. This lets systems be made where the default case loads
a Ethernet/serial gadget driver (for example), but that can be disabled
by overriding `/etc/modules` with a different set of drivers.
@GregMefford

Copy link
Copy Markdown
Contributor

I presume this would enable this to work dynamically: nerves-project/nerves_system_rpi0#62

@fhunleth

fhunleth commented Apr 1, 2019

Copy link
Copy Markdown
Member Author

FYI - there's some out-of-band discussion on how this is handled. E.g., by file in /etc/modules or by Application config or some other mechanism. That's why this hasn't been merged yet.

@GregMefford

Copy link
Copy Markdown
Contributor

I'm curious if there's any update / recap on the discussion/trade-offs because I lost track of it and assumed it was already decided/merged.

@fhunleth

Copy link
Copy Markdown
Member Author

It hasn't been resolved. Justin got busy and I haven't prototyped an Application config version so that we can properly compare options.

@fhunleth fhunleth changed the base branch from master to main July 1, 2020 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants