MacOS – EFI Partition seems to have been replaced, can still boot with rEFInd but need to repair EFI Partition

bootbootcampefimacospartition

Somehow in the process of installing Ubuntu on an external drive I seem to have overwritten my EFI partition to an HFS+ format named "Ubuntu". With rEFInd installed I don't have any problems booting into macOS, so I'm wondering if there is a non-destructive way of rebuilding my EFI partition.

diskutil list

gives me:

diskutil list

where /dev/disk0s1 should be the EFI partition that is missing. Does anybody have any tips on how to non-destructively rebuild the EFI partition?

Best Answer

In case anybody has the same problem in the future, I solved it by following these instructions How to fix broken EFI partition?