I currently have my ESP partition at /boot/efi (actually, it's not even mounted there, no entry in /etc/fstab at all; I installed my system years ago and can't remember why it's setup that way but it's worked OK til now), and would like to have it at /boot instead. I'm currently using GRUB 2 as my boot loader but I don't really know how it works (again, I installed it years ago and never had to touch it since then). And this is Arch Linux.
What would I have to do to make this happen?
Copy everything from /boot to the ESP then add an entry to /etc/fstab to mount the ESP as /boot, but I suspect there might be paths to change in some config files now that EFI would be at /boot/EFI rather than /boot/efi/EFI.
Content of /boot currently:
- grub/
- initramfs-linux.img
- initramfs-linx-fallback.img
- intel-ucode.img
- vmlinuz-linux
Content of the ESP:
- EFI
- arch
- grubx64.efi
- fwupdx64.efi
- fw/
- Dell/Bios/Recovery/
- arch
Context: I want to move to full disk encryption (using LVM on LUKS 2; currently, I have no encryption at all, neither / nor /home), and for that I need to have the kernel and initramfs on an unencrypted partition for GRUB to load (correct me if I'm wrong). I thought the easiest would be to simply have it on the ESP and thus make the ESP /boot rather than /boot/efi.
Suggestions for alternatives are welcome (please provide pros and cons).
--efi-directoryoption can specify the/bootdirectory as an EFI partition. I have not try such a configuration but I guess it should work. Normally,grub-installdetermines the needed modules (here fat.mo) and make an EFI loader abled to open your the boot partition.