Skip to content

Instantly share code, notes, and snippets.

@draplater
Last active August 29, 2015 14:16
Show Gist options
  • Save draplater/57fc7a097d07aadf6d0e to your computer and use it in GitHub Desktop.
Save draplater/57fc7a097d07aadf6d0e to your computer and use it in GitHub Desktop.
Fully install Grub2(EFI) on usbdisk
MOUNT_POINT=/run/media/draplater/BDC7-5FF6
grub2-install --target=i386-efi --efi-directory=$MOUNT_POINT --boot-directory=$MOUNT_POINT/boot/ --removable
grub2-install --target=x86_64-efi --efi-directory=$MOUNT_POINT --boot-directory=$MOUNT_POINT/boot/ --removable
#Generate only one efi file:
grub2-mkstandalone -d /usr/lib/grub/i386-efi/ --compress=xz -o $OUTPUT_FILE -O i386-efi boot/grub/grub.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment