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.