I'm trying to test grub2 on puppet in a VM and one of the tests is to make sure it'll still work on a wiped MBR.
So I wipe the MBR with
dd if=/dev/zero of=/dev/vda bs=512 count=1
Then I try to install grub2 with
grub2-install /dev/vda
and get
Path ‘/boot/grub2’ is not readable by GRUB on boot. Installation is impossible. Aborting.
If I try to install grub2 without wiping the MBR first it works just fine.
Any ideas?