add efi detection algorit and lilo script for EFI