Rewrite GRUB rules for recovery partition creation so they work in either BIOS or EFI