Recently when applying a master image to identical hardware, the destination system will boot to a GRUB> rescue prompt. I need to type the commands below to make the system boot reliably again. The image is Kali Linux. This has not been an issue in the past and I have not changed my process. Is it possible to ensure GRUB maintains its config after imaging? Any help is greatly appreciated.
AT THE GRUB PROMPT:
set root=(hd0,gpt2)
set prefix=(hd0,gpt2)/boot/grub
insmod normal
normal
ONCE THE OS BOOTS:
grub-install /dev/sda
update-initramfs -u
update-grub