
MAXI HEAVY INDUSTRIESSOURCE STUDIES / 02
02 / BOOT
kernel ${base}/linux initrd=initrd.gz || goto failed
initrd ${base}/initrd.gz || goto failed
boot || goto failediPXE02
A machine wakes up
boot-example.ipxe
Source code, selected fragment.
Read complete excerpt +
#!ipxe
# Template for: sudo python3 pxeserv.py --script boot-example.ipxe
#
# Served at http://<this-mac>:8080/boot.ipxe and run by iPXE on the target.
# There is deliberately NO menu here: this file exists for machines whose
# firmware never wakes the USB keyboard, so anything needing a keypress is a
# dead end. Once the kernel below is running, Linux drives the keyboard with
# its own USB stack and the installer is usable again.
#
# For the common distros you do not need this file at all - use the built-in
# catalog instead: sudo python3 pxeserv.py --install list
echo pxeserv: booting Debian 13 - no keypress needed
set base https://deb.debian.org/debian/dists/trixie/main/installer-amd64/current/images/netboot/debian-installer/amd64
kernel ${base}/linux initrd=initrd.gz || goto failed
initrd ${base}/initrd.gz || goto failed
boot || goto failed
:failed
echo pxeserv: boot failed - dropping to the iPXE shell.
echo Try: dhcp, then "chain http://<mac-ip>:8080/boot.ipxe"
shell
MAXI HEAVY INDUSTRIESSOURCE STUDIES / 03
03 / EXECUTION
sudo python3 pxeserv.pySHELL03
One command. A beginning.
README.md / command examples
Source code, selected fragment.
Read complete excerpt +
sudo python3 pxeserv.py
# Boot directly into an installer
sudo python3 pxeserv.py --install debian-13
# Inspect the installer catalogue
sudo python3 pxeserv.py --install list