This repository has been archived on 2022-01-23. You can view files and clone it, but cannot push or open issues or pull requests.
relchk/tpl/ipxe_grub.conf.j2

26 lines
556 B
Django/Jinja

#!/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 %}
}