
I'm not sure I understand this. AFAIK there is only one EFI partition on a disk, and it's the way an UEFI-booting pc finds its boot manager; there's a flag in the GPT partition table to identify it. If you created multiple partitions to do EFI things, you'd have to fiddle around in BIOS to switch from one to another.Banana wrote:... you should use for each OS its own EFI partition. This way the other OS does not overwrite anything.
YES !juniper wrote:Can I do it the old way that I know works.
Code: Select all
# efibootmgr
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0000,0001
Boot0000* Secure HD(1,GPT,0adcbfee-21aa-42ea-9a9a-2e53bd05e6a2,0x800,0x7f800)/File(\efi\secure\bzImage.efi)
Boot0001* gentoo HD(1,GPT,0adcbfee-21aa-42ea-9a9a-2e53bd05e6a2,0x800,0x7f800)/File(\EFI\gentoo\grubx64.efi)
Boot0002* Unlocked HD(1,GPT,0adcbfee-21aa-42ea-9a9a-2e53bd05e6a2,0x800,0x7f800)/File(\efi\unlocked\bzImage.efi)Code: Select all
grub-install --target=x86_64-efi --efi-directory=/boot/efi
Code: Select all
grub-mkconfig -o /boot/grub/grub.cfg
Everything has its advantages and disadvantages ... yes, it depends also what you want to do.juniper wrote:@pietinger: it always seemed weird to me to have the esp partition mounted on boot in a dual boot machine.

"Multiple ESPs" needs context: multiple disks, each of them with one ESP, is OK. On the other hand, one disk with multiple ESPs (i.e. multiple partitions marked with partition type GUID C12A7328-F81F-11D2-BA4B-00A0C93EC93B) can confuse the UEFI firmware, for the reasons stated by Goverp.Banana wrote:There are two disks (physical) which do have their own EFI partition.
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though