I would like to know how to insert a custom kernel module into the kernel during boot time?
Also, would also like to ask how to ensure that this kernel module is always inserted earlier than all the other normal kernel modules? Or is there like a priority number to attach to this kernel module to ensure that it can be inserted into the kernel ASAP.
Thank you very much!
EDIT: managed to figure out how to insert a kernel module on boot. now figuring out how to ensure it is being inserted first
EDIT: the start up process for Ubuntu reads from
Link to documentation: http://manpages.ubuntu.com/manpages/xenial/man5/modules-load.d.5.html
Looking at what possible start up scripts to edit to explicitly increase the priority insertion other than the ones in
EDIT: Have decided to modify the
initramfs config file as compared to the
initrd config file. Reason being that the
initramfs is a root file system that we are able to built into the kernel itself and will take precedence if the file exists. Need to ensure to update the
initramfs config file after each modification.