discover/grub2: Populate option ids