➜ ~ ls /boot/grub
fonts grub.cfg grubenv locale unicode.pf2 x86_64-efi
➜ ~ ls /boot/efi/EFI/ubuntu
grub.cfg grubx64.efi MokManager.efi shimx64.efi
/boot/grub里有一个efi文件夹和grub.cfg,/boot/efi/EFI/ubuntu里又有几个efi文件和grub.cfg,想问一下这两个文件夹的关系,以及最好能讲解一下基于uefi的ubuntu启动流程。谢谢。
I don’t know much about it. I configured it once when I installed fedora before.
For GPT partition table, there is a special EFI partition in the hard disk. At this time, /boot/efi is usually the mount point of the EFI partition. On startup, the UEFI firmware loads the boot code here.
The boot files of your system are stored in /boot/efi/EFI/ubuntu. I don't know why there are efi folder and grub.cfg in /boot/grub. But I suggest you check the types of these files. I suspect that one of them is a link.
For more specific instructions, please refer to: Unified Extensible Firmware Interface - ArchWiki/Simplified Chinese