Modified for efi haiku boot by eanyx