Quote:
Originally Posted by colorpurple21859
However, with a kernel update a "modules doesn't exist" error will occur because the kernel version in the mkinitrd.conf will still point to the old kernel version.
|
I guess best practice is to pass the kernel version on the command line to mkinitrd as this overrides the config file defaults:
Code:
mkinitrd -F -k 4.4.217
Edit: Actually, seeing as mkinitrd.conf is sourced by mkinitrd, you could possibly use your readlink trick to set KERNEL_VERSION to the newly-installed kernel. It defaults to "KERNEL_VERSION=$(uname -r)" so it doesn't have to be hard-coded.