I installed Ubuntu Server 22.03 on a system with 3 identical hard drives. During the disk setup process, I created 500M fat32 partitions on each of my hard drives and configured the rest of the disk space as RAID1. After setting the esp flag on the fat32 partitions I was able to select them all as boot devices. After installation, contents of the EFI partitions are identical (I checked with rsync). I want to ensure that the system will always be able to boot from any of the drives.
What I want to know:
- will system updates keep the EFI partitions synchronized?
- if so, what do I need to do when replacing a failed RAID drive to ensure that its EFI partition remains synchronized?
It looks like the system updates won't keep the EFI partitions up to date. Here's a shell script that should do the trick.
!!!WARNING!!! this will overwrite all EFI partitions on your system. If you have EFI partitions that you don't want synchronized, DON'T USE THIS SCRIPT.