I'm trying to configure EFI Stub to disable GRUB and directly boot into Manjaro. I've documented my setup process but ran into some roadblocks. I know that EFI requires a kernel image and an initial ramdisk to boot. My initial attempts to remove GRUB and use the command line parameters directly with EFI haven't worked out. I found myself in a boot loop after creating a boot entry using efibootmgr. I need a more straightforward, step-by-step guide that doesn't assume prior knowledge, preferably tailored for Manjaro. Here's what I've done so far:
1. Listed partitions using `lsblk`.
2. Went to the `/boot` directory and listed its contents.
3. Attempted to delete the EFI folder with `sudo rm -r efi`, but it failed.
4. Created a new directory at `/boot/efi/boot`.
5. Copied the kernel image to `/boot/efi/boot` as `bootx64.efi`.
6. Tried setting up the boot entry with efibootmgr but ended up with an error saying no OS available.
Can anyone help me understand how to simplify this process for Manjaro?
1 Answer
Getting EFI Stub to work can be tricky, especially if you're new to it. You clearly need both the kernel image and the initramfs in the same package. After you copy the kernel image (`vmlinuz`) to the `/boot/efi/boot` directory, don’t forget to include the initramfs. You can build the initramfs directly into the kernel image if you want it all in one file, which will save you some hassle later on. Just be aware that if you update your kernel, you'll need to repeat this process. It sounds tedious, but once you set it up right, it should boot fine without GRUB. Let me know if you need more specifics on building the initramfs!
I think you're right about the Manjaro kernels including those parameters by default. It's definitely worth checking if they have a GUI tool for managing kernels that can also set up the initramfs. But if you aren't comfortable with compiling kernels as you'd do with Gentoo, sticking with the pre-packaged ones makes sense! You could look for a guide specific to Arch/Manjaro that details step-by-step instructions for EFI Stub setup.