x86: avoid using grub prepare when using grub2