I have two hard drives with Arch Linux and Windows 10 installed respectively in UEFI mode. Let's say they are disk1 and disk2. Now I want to try Hackintosh on disk2, overwriting existing windows install. Before all that, I want to make a full backup of disk2 including its EFI boot entry or maybe entire EFI boot entry table.
I have created a image of disk2 with dd under linux:
dd if=disk2 conv=sync status=progress bs=64K | gzip -c > $(date -Idate).gz
Now, how to backup EFI boot entries? I can see with
efibootmgr you can only list or add boot entries. Or, do I really need to make a backup, since disk2's ESP partition is already included in the disk image?