EFI Partition seems to have been replaced, can still boot with rEFInd but need to repair EFI Partition 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:



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?
In case anybody has the same problem in the future, I solved it by following these instructions
How to fix broken EFI partition?