How to compile vanilla Linux kernel from source on Fedora -

The kernel is the most important component of an operating system: among the other things, it provides support for different types of hardware and manages resource allocations.

Linux is a monolithic kernel: although its functionalities can be included statically or built and loaded as separate modules, it always runs as a "single piece" in the same address space. In this tutorial we will see how to download, compile and install a vanilla Linux kernel.

The instructions provided should work on all Linux distributions, however this guide is focused on compiling the kernel on a Fedora system.

This is a companion discussion topic for the original entry at

Thanks for the tips. The grub2-mkconfig command does not place the configuration file in the location needed for a Fedora 31 install. Am I correct in thinking the output directory should be (in Fedora 31)
Thanks, Fred L.

In EFI mode grub looks for the /boot/efi/EFI/fedora/grub.cfg file. To update the configuration you can therefore run:

$ sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg