All
I gave updated the code and now provide an inotify based daemon to sync
alternate <esp>s - and a systemd service unit to run it.
I would very much appreciate if others ran this - by using the test
option it does nothing but prints what would happen. And can be run as
non-root user.
It is working here on test machine set up with 2 disks, 2 esps and
with btrfs raid1 for the root file system across the 2 disks. (thanks
Oscar).
esp's are mounted on /efi0 and /efi1 - and the currently booted esp is
bind mounted on /boot.
1 daemon bind mounts /boot automatically from the currently booted
ersp, and other monitors for change and updates any alternate esp(s).
I consider this now feature complete :)
Again, thanks for feedback and ideas.
All code and docs and unit files are available via :
the AUR https://aur.archlinux.org/packages/dual-root
github https://github.com/gene-git/dual-root
best
gene