I added a line to grub.cfg (in the EFI partition): cryptomount hd0,gpt5 and now it works. I'm not sure if there's a way of putting the UUID on that cryptomount command.