Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #228858

Re: Redundancy for EFI System Partition: what do people do in 2020?

From Sven Hartge <sven@svenhartge.de>
Newsgroups linux.debian.user
Subject Re: Redundancy for EFI System Partition: what do people do in 2020?
Date 2020-11-21 19:30 +0100
Message-ID <BdFO1-7dU-3@gated-at.bofh.it> (permalink)
References <BdEff-6bJ-5@gated-at.bofh.it>
Organization Newsfeed am Wurmloch

Show all headers | View raw


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.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Redundancy for EFI System Partition: what do people do in 2020? Andy Smith <andy@strugglers.net> - 2020-11-21 17:50 +0100
  Re: Redundancy for EFI System Partition: what do people do in 2020? Sven Hartge <sven@svenhartge.de> - 2020-11-21 19:30 +0100
  Re: Redundancy for EFI System Partition: what do people do in 2020? Steve McIntyre <steve@einval.com> - 2020-11-21 19:30 +0100
    Re: Redundancy for EFI System Partition: what do people do in 2020? Julian Andres Klode <jak@debian.org> - 2020-11-21 20:00 +0100
  Re: Redundancy for EFI System Partition: what do people do in 2020? David Christensen <dpchrist@holgerdanske.com> - 2020-11-21 20:20 +0100

csiph-web