2023-09-01 15:41:57 -04:00
|
|
|
#!ipxe
|
|
|
|
|
|
|
|
# Set global variables
|
|
|
|
set root-url tftp://${next-server}
|
|
|
|
set kernel vmlinuz
|
|
|
|
set initrd initrd.img
|
|
|
|
|
|
|
|
# Set kernel command line parameters
|
2023-09-01 15:41:57 -04:00
|
|
|
set imgargs-base vga=normal nomodeset boot=live components ethdevice-timeout=300 timezone=America/Toronto fetch=${root-url}/filesystem.squashfs username=root
|
2023-09-01 15:41:57 -04:00
|
|
|
set imgargs-pvcinstall pvcinstall.preseed=on pvcinstall.seed_host=${next-server} pvcinstall.seed_file=/host/mac-${mac:hexraw}.preseed
|
|
|
|
|
2023-09-01 15:41:58 -04:00
|
|
|
# Load per-host kernel command line parameters
|
2023-09-01 15:41:57 -04:00
|
|
|
chain --autofree ${root-url}/host/mac-${mac:hexraw}.ipxe ||
|
|
|
|
|
|
|
|
# Set default menu options
|
|
|
|
set menu-default pvc-installer
|
|
|
|
set submenu-default pvc-installer
|
|
|
|
|
|
|
|
# PVC installer menu option
|
|
|
|
:pvc-installer
|
|
|
|
kernel ${root-url}/vmlinuz
|
|
|
|
initrd ${root-url}/initrd.img
|
2023-09-01 15:41:59 -04:00
|
|
|
imgargs vmlinuz initrd=initrd.img ${imgargs-host} ${imgargs-base} ${imgargs-pvcinstall}
|
2023-09-01 15:41:57 -04:00
|
|
|
boot
|