Unlike most distribution Solus builds the initrd during packaging of the kernel package. So the correct way to do this would be to setup for building packages, clone the linux-current package (git clone https://dev.getsol.us/source/linux-current.git
), and then change this line in the package.yml
--kver $kversion --add "bash systemd lvm dm rescue" \
to
--kver $kversion --add "bash systemd lvm nfs dm rescue" \
This will configure dracut to include the nfs module which should automatically add the correct kernel modules to the initrd. Note that if you receive errors about missing binaries you will need to find out what which package stores the binary mentioned in the error and add it to the builddeps
section.
FYI this is a completely unsupported use-case for Solus. I'm not even sure the instructions I've given you will be sufficient, they are just my best guess as to what you need to do. Note that even if you get this working that you will need to re-do it every time Solus updates the kernel.