Skip to content

Instantly share code, notes, and snippets.



Created May 19, 2016
What would you like to do?
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/ \
-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