2

I have a block device module that has to be loaded before the file system. I'm told that I have include the module into an initramfs and boot from it.

Then I've created my own initramfs width dracut, put my .ko file into /user/lib, I've also generated new grub.cfg.

However, after reboot, lsmod shows that the .ko file is not loaded.

So I'd like to know what should I do make the module loaded automatically when I reboot?

Thank you.

P.S. I'm using Centos 7.

vesontio
  • 381
  • 1
  • 7
  • 19
  • Centos 7 is using systemd, right? I think it possible to create a configuration *.conf file in /etc/modules-load.d/ and specificy the module name inside it. This at least makes sure that the module is loaded at boot, but I don't know if is also loaded earlier then automatically probed modules. – Maurice Jun 30 '15 at 01:32
  • Yes it's using Systemd, thank you for your reply. @MauriceLaveaux – vesontio Jun 30 '15 at 03:09
  • I don't know exactly what dracut does different from mkinitcpio, but I have tested it myself using the latter and it works, so I could try to explain the steps in that one if you want. – Maurice Jul 08 '15 at 17:14

0 Answers0