-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to find module 'sg' #1099
Comments
Is the module mentioned in |
Did you forget to do a |
No. This is done automatically when the kernel is installed. The module is not in the modules tree: content of /lib/modules
|
Ok, then I'll have to revisit this. Thanks for reporting! |
This is still open and it happens with most recent xanmod kernel and most recent dracut on Arch. I believe the issue is that this script |
What is your output of: $ egrep -r . /usr/lib/modules-load.d /etc/modules-load.d |
$ sudo /lib/systemd/systemd-modules-load
Module 'msr' is built in
Module 'sg' is built in |
It looks like |
Is $ lsinitrd <initrdfile> | grep modules.builtin |
This is with the initramfs-linux-xanmod-lts.img created by dracut:
and
EDIT: |
Well, it might still be in the initramfs. # lsinitrd initramfs-linux-xanmod-lts.img | grep modules-load.d |
also try this: # lsinitrd initramfs-linux-xanmod-lts.img -f usr/lib/modules/5.10.34-xanmod1-1-lts/modules.builtin | grep sg.ko |
|
The instruction in
Although |
So, you will have to add
manually to see if the
|
This solves all issues, where builtin kernel modules are not recognized as such. Fixes: dracutdevs#1146 Fixes: dracutdevs#1099
This is likely the culprit: #1436 |
yeah, the fix is PR #1436 |
Yes! I tested it and it fixes my issue. |
This solves all issues, where builtin kernel modules are not recognized as such. Fixes: dracutdevs#1146 Fixes: dracutdevs#1099
I am using EndeavourOS (Arch). With custom kernel linux-xanmod I get an error message in the journal during boot:
systemd-modules-load[297]: Failed to find module 'sg'
This does not happen with other kernels because the xanmod kernel does not come with this module. It is compiled into the kernel:
dracut seems to have the sg module dependency hardcoded into the
90kernel-modules
module:The PC is still booting and I do not experience any misbehavior. But the message in the log is annoying.
Can the dependency on the
sg.ko
module be removed from dracut?The text was updated successfully, but these errors were encountered: