I spent 6 hours on this and I've given up. I am not finding a method to recovering a /boot partition that was overwritten by an identical /boot partition. This isn't your regular average grub installation problem. This is from hell.
I have 2 systems, A and B. These 2 systems are identical in every way except for UUID's and several files that are particular to the respective systems (e.g., fstab, crypttab, etc). B was a backup of A and both systems were able to boot successfully at one point.
Now B having its /boot overwritten %100 by A, B refuses to boot up and I've tried everything I could possibly come up with that should work (nothing works).
I've --bind mounted /dev/ /dev/pts/ /sys/ /proc/ to a chrooted environment and chrooted into it and updated-grub, purged grub, reinstalled grub, removed kernels, updated kernels, ran update-initramfs -k all -c with other options and other stuff in all sorts of orders, even from scratch. I've ran grub-update from the host using the --directory option and I've even resorted to boot-repair and I've literally done this perhaps a hundred times for 6 hours.
Nothing will get the system back up.
I know this has to be simpler and I'm just having the most terrible luck at figuring it out. What am I doing wrong? Both systems are encrypted using the whole disk encryption from installation.
update it appears at the point during boot where I should be prompted for a password to unlock / the system hangs and then drops to an initramfs prompt. I have no idea and there is no help on how to unlock a cryptsetup disk. I don't have cryptsetup in initramfs :/