Skip to content

Instantly share code, notes, and snippets.

@deitch
Created May 19, 2016 07:35
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 deitch/260bb94ecf7932cb83bdf7024099fdb5 to your computer and use it in GitHub Desktop.
Save deitch/260bb94ecf7932cb83bdf7024099fdb5 to your computer and use it in GitHub Desktop.
set default=0
set timeout=10
set gfxmode=auto
insmod efi_gop
insmod efi_uda
menuentry "MyOS" {
search.fs_label SOMELABEL root
set gfxpayload=keep
linux /boot/vmlinuz quiet
initrd /boot/initrd
}
grub-mkimage -O x86_64-efi -o EFI/BOOT/BOOTX64.EFI --config=boot/grub/grub.cfg \
--compression=xz disk part_msdos part_gpt linux loopback normal configfile search \
search_label true iso9660 efi_uga efi_gop gfxterm gfxmenu gfxterm_menu fat ls cat tar
dd if=/dev/zero of=efiboot.img bs=4k count=1000
mkfs.vfat efiboot.img
mount efiboot.img /mnt
cp -r EFI/ /mnt
unmount /mnt
xorriso -as mkisofs -l -J -R -V SOMELABEL \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
-ishybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \
-eltorito-alt-boot -e efiboot.img -no-emul-boot -isohybrid-gpt-basdat \
-o some_output.iso .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment