Re: Redundancy for EFI System Partition: what do people do in 2020?
Andy Smith <andy@strugglers.net> wrote:
> c) Manually sync the ESP to another partition which can be used if
> the first device dies.
> An identical partition can be created on the second device and an
> arrangement made to copy the real ESP to the secondary partition
> every time grub-install would be run.
> You would have to be sure that this is as automated and foolproof
> as possible, to avoid being lulled into a false sense of security
> and then have a problem at the worst time.
I choose c) for the systems here, including the syncing into our normal
package upgrade scripts, making sure that /boot/efi and /boot/efi2 are
in sync after every package update.
Code looks like this:
if [ -d /boot/efi/EFI/debian/ -a -d /boot/efi2/EFI/debian/ ]; then
echo 'Multiple UEFI ESP found'
if ! diff -rq /boot/efi/EFI/debian/ /boot/efi2/EFI/debian/; then
echo 'ESP differ, need to rsync'
rsync -rv /boot/efi/EFI/debian/ /boot/efi2/EFI/debian/
fi
fi
Grüße,
Sven.
--
Sigmentation fault. Core dumped.
Reply to: