You are not logged in.

#1 2023-02-13 09:37:54

Blake227
Member
Registered: 2023-02-13
Posts: 3

Correct way to backup and restore EFI partition via BTRFS snapshots?

I recently installed Arch with BTRFS and UKI. Although snapshots are wonderful, the EFI partition cannot be snapshotted, which does not work well with UKI. I was trying to backup EFI partition to snapshots every time the kernel or bootloader get updated in EFI Partition. In that case, I'm able to restore EFI partition just by copying files in the snapshot to EFI partition. I've tried it but bootloader (systemd-boot) entry disappears on UEFI boot menu every time I restore EFI from snapshot. I have to go through the hassle of modifying the boot menu using efibootmgr. Is there any elegant way to backup EFI partition?

Offline

#2 2023-02-13 12:44:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 18,709

Re: Correct way to backup and restore EFI partition via BTRFS snapshots?

Not really, the only general way you can do this is to abuse the fallback location and boot systemd-boot from there. https://wiki.archlinux.org/title/Unifie … ble_drives

Last edited by V1del (2023-02-13 12:44:48)

Offline

#3 2023-02-13 19:35:57

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 6,929
Website

Re: Correct way to backup and restore EFI partition via BTRFS snapshots?

Or just place the unified kernel image at the fallback location and do without a bootloader entirely. That way you don't have to back up the ESP, just regenerate the UKI.

Offline

Board footer

Powered by FluxBB