Skip to content

Instantly share code, notes, and snippets.

@n0b0dy
Last active December 13, 2015 19:48
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 n0b0dy/4965100 to your computer and use it in GitHub Desktop.
Save n0b0dy/4965100 to your computer and use it in GitHub Desktop.
Gentoo & Ubuntu grub2-efi
## Gentoo EFI
grub2-install --target=x86_64-efi --modules="part_gpt part_msdos linux normal boot all_video chain efi_gop video video_fb gzio ls lvm" --efi-directory=/boot/efi /dev/sda1
efibootmgr --create --gpt --disk /dev/sda --part 1 --write-signature --label "Gentoo" --loader '\EFI\gentoo\grubx64.efi'
## Ubuntu EFI
grub-install --bootloader-id ubuntu /dev/sda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment