/etc/grub.d/20_ipxe is in grub-ipxe 1.0.0+git-20150424.a25a16d-1ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #! /bin/sh
set -e
. /usr/lib/grub/grub-mkconfig_lib
# iPXE is only supported on x86
case $(dpkg --print-architecture) in
*i386|*amd64) ;;
*) exit 0 ;;
esac
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
IPXE=/boot/ipxe.lkrn
if test -e "$IPXE" ; then
IPXEPATH=$( make_system_path_relative_to_its_root "$IPXE" )
echo "Found iPXE image: $IPXE" >&2
cat << EOF
menuentry "Network boot (iPXE)" --users "" --class network {
${prepare_boot_cache}
linux16 $IPXEPATH
}
EOF
fi
|