Unfortunately, on Fedora 30 and above, generating the initramfs image does not appear to work as easily as with Ubuntu in the preceding section. Some folks suggest explicitly specifying the architecture via the ARCH environment variable. Take a look:
$ sudo make ARCH=x86_64 install
sh ./arch/x86/boot/install.sh 5.4.0-llkd01 arch/x86/boot/bzImage \
System.map "/boot"
Cannot find LILO.
$
It fails! Want to know why? I won't go into the details here, but this link should help you out: https://discussion.fedoraproject.org/t/installing-manually-builded-kernel-in-system-with-grub2/1895. To help set this situation right, here's what I did on my Fedora 31 VM (and, yes, it worked!):
- Manually create the initramfs image:
sudo mkinitrd /boot/initramfs-5.4.0-llkd01.img 5.4.0-llkd01
- Ensure that the grubby package is installed:
sudo dnf install grubby-deprecated-8.40-36.fc31.x86_64
Pressing the Tab key twice after typing grubby...