discover/grub2: Implement 'search' command