After many experiments here's the cleanest way to recover from this to a bootable system.
mount /dev/sda1 /mnt -o rw mount --bind /dev /mnt/dev chroot /mnt apt-get update apt-install grub-pc
Just follow instructions and reboot.
After many experiments here's the cleanest way to recover from this to a bootable system.
mount /dev/sda1 /mnt -o rw
mount --bind /dev /mnt/dev
chroot /mnt
apt-get update
apt-install grub-pc
Just follow instructions and reboot.