#!/bin/sh # Copy this file to /etc/grub.d/40_custom_ipxe with mode 0755 and run grub-mkconfig -o /boot/grub/grub.cfg exec tail -n +3 $0 # iPXE # Project: https://ipxe.org/ # Details: https://ipxe.org/docs menuentry 'iPXE' { insmod linux16 insmod loopback search --no-floppy --fs-uuid {{ disk_uuid }} --set=root {%- if variant == 'iso' %} set isofile='{{ iso_path }}' loopback loop (${root})/${isofile} linux16 (loop)/ipxe.lkrn {%- else %} insmod fat insmod chain terminal_output console chainloader (${root})/{{ iso_path }} {%- endif %} }