Recover from unbootable Linux

A quick note

In grub CLI:

# Set root device
set root=(hd0,gpt2)

# Load kernel and initrd
linux /vmlinuz root=/dev/sda2
initrd /initrd.img

# Boot
boot

After booting:

update-grub