3 ms·
I think for the past three years or so I've exclusively used EFISTUB, extra bootloaders just aren't necessary anymore because UEFI already implies one provided
by LoganDark 3y ago
I think for the past three years or so I've exclusively used EFISTUB, extra bootloaders just aren't necessary anymore because UEFI already implies one provided by the motherboard. I just use efibootmgr to set up an entry with the flags I want and boom. You're going to be waiting for the motherboard's bootloader to load anyway, so you may as well have it load the actual kernel rather than another bootloader.
EFISTUB is a Linux config option that has to be specified at compile time, so you do have to compile your own kernel if the distro you're using doesn't already enable it, but I compile my own kernels anyway so this is fine.
- gizmo686 3y agoThere is also systemd-stub. It is technically a bootloader. However it looks inside of itself for the kernel, ramdisk, and kernel commandline [0]. This means that you can use objcopy to put an existing kernel and ramdisk into a standalone EFI executable; without needing to recompile anything. Dracut even has a "--uefi" option that will do all of that automatically. [0] Although if secureboot is disabled, you can override the cmdline from the EFI if your firmware exposes that functionality.