FS#45754 - [systemd] Message "Failed to insert module ..." on boot using systemd hook
Attached to Project:
Arch Linux
Opened by Alain Kalker (ackalker) - Thursday, 23 July 2015, 17:56 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 16 August 2015, 22:53 GMT
Opened by Alain Kalker (ackalker) - Thursday, 23 July 2015, 17:56 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 16 August 2015, 22:53 GMT
|
Details
Description:
During boot, a message briefly shows on the console: systemd[1]: Failed to insert module 'ip_tables': Function not implemented From my investigation[1] I found I found that systemd treats certain modules in a special way (and may try to load them) during early boot, see the function kmod_setup() in src/core/kmod-setup.c In this case, the message appears to be due to the ip_tables module missing from generated initramfs-linux.img. Adding an "add_module ip_tables" to the systemd hook makes the message go away. Some other problems we found (may need to be fixed upstream): - The message isn't logged in the journal, which hints at a possible "blind spot" where messages could disappear from record between kernel boot and systemd startup. - systemd appears to depend on modules outside the normal /etc/modules-load.d mechanism, which makes it harder to autodetect needed modules needed in initramfs. (Better keep an eye on struct kmod_table[] in src/core/kmod-setup.c which may become relevant again when kdbus support becomes mainstream, etc.) [1]: https://bbs.archlinux.org/viewtopic.php?pid=1547271#p1547271 Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: |
This task depends upon
Closed by Doug Newgard (Scimmia)
Sunday, 16 August 2015, 22:53 GMT
Reason for closing: Fixed
Additional comments about closing: kmod 21-2
Sunday, 16 August 2015, 22:53 GMT
Reason for closing: Fixed
Additional comments about closing: kmod 21-2
Question at the developers of Archlinux:
What is the state of the systemd init hook? I switched to default of base and udev for the official kernel of Archlinux.
[side note]
I'm planning to remove the loading of the initramfs for my self compiled kernel during this weekend. The kenrel contains all necessary options for bootup and the initramfs is therefore only unnecessary work and with possible issues. But that is my very one decision, most people can't and won't compile a kernel itself.
[/side note]
[1]http://cgit.freedesktop.org/systemd/systemd/tree/README
// edit
Since when is bugtracker of Systemd no longer hosted on freedesktop.org? Doesn't remember my github credentials.
It would be nice if the the kmod patch [1] could be backported, since libkmod releases seem to be quite infrequent.
[1]: https://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/commit/?id=114ec87c85c35a2bd3682f9f891e494127be6fb5