Skip to content

Instantly share code, notes, and snippets.

@jasonrm
Last active July 30, 2019 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonrm/f3229f38fa22fd83f239b1c2040309a3 to your computer and use it in GitHub Desktop.
Save jasonrm/f3229f38fa22fd83f239b1c2040309a3 to your computer and use it in GitHub Desktop.
MacPro 1,1 boot 64-bit kernel from 32-bit UEFI
set default=0
set timeout=1
# insmod efi_uga
insmod all_video
insmod font
if loadfont ${prefix}/unicode.pf2
then
insmod gfxterm
set gfxmode=auto
set gfxpayload=keep
terminal_output gfxterm
fi
menuentry 'Arch Linux' {
insmod gzio
echo 'Loading Linux linux ...'
# add_efi_memmap might do nothing, still need to test
linux /vmlinuz-linux root=rpool/ROOT/arch rw noefi add_efi_memmap nomodeset
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
echo 'booting ...'
boot
}
menuentry "System restart" {
echo "System rebooting..."
reboot
}
menuentry "System shutdown" {
echo "System shutting down..."
halt
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment