You are not logged in.

#1 2015-03-02 05:55:38

ItachiSan
Member
Registered: 2013-09-02
Posts: 31

Chainloading Grub into Clover or any EFI executable

Hello guys,
I've been working on an hackintosh of mine (with GPT) and I'm having a small problem;
I've installed Clover in my ESP partition but when I try to chainload it with Grub I'm having an "unexpected error". I'll post this evening anything useful that come in my mind.
Does anyone have a similar problem?

Last edited by ItachiSan (2015-03-02 06:24:54)

Offline

#2 2015-03-04 22:40:44

ItachiSan
Member
Registered: 2013-09-02
Posts: 31

Re: Chainloading Grub into Clover or any EFI executable

Actually, I removed my Clover installation from my ESP.
Some info:

sudo parted /dev/sda -l
Modello: ATA ST500LT012-9WS14 (scsi)
Disco /dev/sda: 500GB
Dimensione del settore (logica/fisica): 512B/4096B
Tabella delle partizioni: gpt
Flag del disco: 

Numero  Inizio  Fine    Dimensione  File system     Nome                          Flag
 1      1049kB  420MB   419MB       fat32           Basic data partition          nascosta, diag
 2      420MB   735MB   315MB       fat32           EFI system partition          avvio, esp
 3      735MB   869MB   134MB                       Microsoft reserved partition  msftres
 4      869MB   61,6GB  60,7GB      ntfs            Basic data partition          msftdata
 5      61,6GB  83,1GB  21,5GB      ext4                                          msftdata
 6      83,1GB  85,2GB  2147MB      linux-swap(v1)
 7      85,2GB  290GB   205GB       ntfs                                          msftdata
 8      290GB   438GB   148GB       ext4                                          msftdata
 9      438GB   454GB   16,1GB      ext4                                          msftdata
10      460GB   480GB   20,8GB      hfs+            Apple_HFS_Untitled_2
11      480GB   481GB   650MB       hfs+            Recovery HD
12      481GB   500GB   19,1GB      ntfs            Basic data partition          nascosta, diag

efibootmgr:

efibootmgr 
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,0000,0004,0003,0007
Boot0000* ubuntu
Boot0001* archlinux_grub_uefi
Boot0003* HDD: 
Boot0004* HDD: ST500LT012-9WS142
Boot0007* Windows Boot Manager

My GRUB2 custom code:

cat /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
...

menuentry 'Mac OS X' --class osx --class darwin --class os {
	insmod fat
	insmod hfsplus
	insmod part_gpt 
	set root='hd0,gpt10'
	search --no-floppy --set=root /usr/standalone/i386/boot.efi
	chainloader (${root})/usr/standalone/i386/boot.efi -v
}

...

Result of all (before removing Clover)
Herpy derpy

My main problem, as for now, is to chainload Clover or something similar in GRUB. Is it possible?

Offline

Board footer

Powered by FluxBB