discover/grub2: Add a reference to the context from grub2_script