I installed on my laptop Ubuntu and Haiku. Previously I had openSUSE (great OS) and I think this instruction is good for any Linux distribution. There may be slightly differences. It seems to me that on openSUSE I could enter the /boot/efi without superuser privileges. I’m not very familiar with Linux, but I was successful with booting to Haiku. In current hrevs (02.02.2017) Haiku do not create special file on EFI partition. Also Haiku BootManager is not EFI and GPT capable. This is not yet implemented. You need some external bootloader for booting to installed current version of Haiku on EFI system, like starter floppy disk in the last century - I was using pendrive with written Haiku Jessicah Build.
Recent nightlies do not boot on my computer. I don’t knowy why, Haiku bootloader do not see Haiku partitions, check #13200 on Trac. I must to use Haiku with EFI loader. You can download it:
http://www.jessicah.org/uefi-x86_64-haiku.tar.gz
https://drive.google.com/open?id=0BxfU61SfLpMjMUVlb1VCeWVsaVE (my mirror)
There is old instruction, but is good only for old BIOS’s and MBR disks.
What to do when you want dual-boot:
1. Obtaining Haiku EFI file.
Firstly create haiku folder in /boot/efi/EFI.
- Open Terminal.
- Type sudo mkdir /boot/efi/EFI/haiku.
If you have Haiku Jessicah Build written to pendrive, you must to mount EFI partition from flash stick. You must to know the name of disk and partition. Type in Terminal lsblk or sudo fdisk -l. I have one HDD, then I know that my pendrive is /dev/sdb. In my case there was:
Urządzenie Start Koniec Sektory Size Typ
/dev/sdb1 40 102439 102400 50M EFI System
/dev/sdb2 102440 2045991 1943552 949M nieznany
- Mount it! sudo mount /dev/sdb1 /mnt
- Copy it! sudo cp /mnt/EFI/BOOT/BOOTX64.EFI /boot/efi/EFI/haiku
Some my thoughts:
If you deleted the recorded image, you can re-download it and mount it!
In this case, just follow this instruction - http://madduck.net/blog/2006.10.20:loop-mounting-partitions-from-a-disk-image/
In my case this was - sudo losetup /dev/loop0 /home/premislaus/Pobrane/uefi-x86_64-haiku.image -o $((40 * 512))
Or just download it from my Google Drive - https://drive.google.com/open?id=0BxfU61SfLpMjOVF5Z3cxSUJ3WEU
2. Modifying GRUB.
On Linux is zillions of commands, programs, thousand of ways for to do something. On Ubuntu 16.04.1 there is no more gksu… OK let’s go with GRUB.
- Type sudo gedit (If you have other distro you must use command for starting GUI app with root privilage: On Gnome there is gksu I think, on KDE kdesu). Or run familiar to you text editor.
- Open grub text file in /etc/default/. And uncomment
GRUB_HIDDEN_TIMEOUT=0
- you need it for boot menu. - Open 40_custom text file in /etc/grub.d/, and paste following text, then save:
menuentry "Haiku x86_64" {
insmod part_gpt
insmod chain
set root='(hd0,gpt1)'
chainloader /EFI/haiku/BOOTX64.EFI
}
- Type in terminal sudo update-grub.
Finally you can boot to Haiku!
BTW I think sudo update-grub will not be work on openSUSE Tumbleweed. This should work: sudo grub2-mkconfig -o /boot/grub2/grub.cfg
I was tinkering with this for three days, because I want to create multiboot pendrive with various live CD’s and tools like gparted. I was successful with creating Hybrid MBR pendrive, but I failed with loading Haiku and other images. Today I was able to understand how to load the EFI from HDD. If I find some time, then I want to try again with pendrive.
PS. With this method Haiku Bootloader does not work - this what appear when you hold shift during booting to normal Haiku. I don’t know how to set up it again?