You do realize, you don't have to replace the stock kernel when you compile a new one. You can install multiple kernels and their support files are in /lib/modules in directories defined by the kernel name.My system has 3 kernels installed. The standard Arch kernel, the -ck kernel from AUR, and (Because you can take the boy away from Gentoo, but you can't take Gentoo out of t
One is supposed to create the grub.cfg file using grub2-mkconfig, which uses the templates in /etc/grub.d, mostly 10_linux (at least in a default Fedora install -- I assume it is similar in other distributions), the options in /etc/default/grub, and the available kernels in /boot, to add one line for each kernel.
But I would like to have multiple lines for some kernels, with differing options.