x86: add support for building grub2 images