Skip to content

Instantly share code, notes, and snippets.

@LazerPanther
Last active August 29, 2015 14:25
Show Gist options
  • Save LazerPanther/172acc97e9a5ac910389 to your computer and use it in GitHub Desktop.
Save LazerPanther/172acc97e9a5ac910389 to your computer and use it in GitHub Desktop.

Assuming Arch is installed. Unistall refind and syslinux.

In arch-chroot :

pacman -S efibootmgr grub
mkdir -p /boot/efi
mount -t vfat /dev/sdXY /boot/efi  #with sdXY your EFI partition
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck
cd /boot/efi/EFI
mkdir boot
cp /boot/efi/EFI/arch_grub/grubx64.efi /boot/efi/EFI/boot/bootx64.efi

then launch a live USB/DVD OSX and the terminal

cd /Volumes
mkdir efi
mount -t msdos /dev/disk0s1 /Volumes/efi  #disk0s1 your EFI partition
bless --folder=/Volumes/efi --file=/Volumes/efi/EFI/boot/bootx64.efi --setBoot
bless --mount=/Volumes/efi --file=/Volumes/efi/EFI/boot/bootx64.efi --setBoot

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment