Re: [systemd-devel] keeping a backup ESP partition in sync

2024-05-27 Thread Kevin P. Fleming
> (the way I'd implement this, is not by actually teaching these > commands individual multi-ESP support, but simply by implementing a > single sync_esp() call or so which syncs the relavant info from > primary to secondary ESPs correctly, and that each of these commands > just call as last step.

Re: [systemd-devel] keeping a backup ESP partition in sync

2024-05-27 Thread Lennart Poettering
On Mo, 27.05.24 09:48, Alexander Gordeev (a...@gordius.net) wrote: > > That said, the intended semantics for that are not clear to me at > > all. i.e. there are some options: > > > > 1. mount the current ("primary") ESP to /efi/, and operate exclusively > >on that, except that at the very end

Re: [systemd-devel] keeping a backup ESP partition in sync

2024-05-27 Thread Alexander Gordeev
Hi Lennart, Thanks for the detailed feedback, On Wed, May 22, 2024 at 3:08 PM Lennart Poettering wrote: > > On Fr, 17.05.24 11:03, Alexander Gordeev (a...@gordius.net) wrote: > > > Hi, > > > > I've tried systemd-boot recently, I like it a lot. Thanks! > > There is still one concern. I'd like to

Re: [systemd-devel] keeping a backup ESP partition in sync

2024-05-22 Thread Lennart Poettering
On Fr, 17.05.24 11:03, Alexander Gordeev (a...@gordius.net) wrote: > Hi, > > I've tried systemd-boot recently, I like it a lot. Thanks! > There is still one concern. I'd like to have a backup EFI partition > because you know things can happen and my rootfs is on a mirror > anyway. There is a

Re: [systemd-devel] keeping a backup ESP partition in sync

2024-05-21 Thread Alexander Gordeev
Hi Kevin, On Fri, 17 May 2024, 12:56 Kevin P. Fleming, < lists.systemd-de...@kevin.km6g.us> wrote: > On Fri, May 17, 2024, at 05:03, Alexander Gordeev wrote: > > I think it is better to have them mounted as e.g. /boot/efi and > > /boot/eficopy and make changes like this: > > 1. update /boot/efi

Re: [systemd-devel] keeping a backup ESP partition in sync

2024-05-17 Thread Kevin P. Fleming
On Fri, May 17, 2024, at 05:03, Alexander Gordeev wrote: > I think it is better to have them mounted as e.g. /boot/efi and > /boot/eficopy and make changes like this: > 1. update /boot/efi > 2. make sure the update is actually written to the device > 3. update /boot/eficopy > > Right now I do this

[systemd-devel] keeping a backup ESP partition in sync

2024-05-17 Thread Alexander Gordeev
Hi, I've tried systemd-boot recently, I like it a lot. Thanks! There is still one concern. I'd like to have a backup EFI partition because you know things can happen and my rootfs is on a mirror anyway. There is a popular approach with setting up a mdraid version 1.0 to sync the ESPs. I don't